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 Compound 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 Compound Protocol markets.
const compound = new Compound(window.ethereum); (async function () { const trx = await compound.enterMarkets(Compound.ETH); // Use [] for multiple console.log('Ethers.js transaction object', trx); })().catch(console.error);