An array of strings of markets to enter, meaning use those supplied assets as collateral.
Returns an Ethers.js transaction object of the enterMarkets transaction.
Exits the user's address from a Venus Protocol market.
A string of the symbol of the market to exit.
Returns an Ethers.js transaction object of the exitMarket transaction.
Enters the user's address into Venus Protocol markets.
const venus = new Venus(window.ethereum); (async function () { const trx = await venus.enterMarkets(Venus.SXP); // Use [] for multiple console.log('Ethers.js transaction object', trx); })().catch(console.error);