Exit Market
Exit a market. Exited markets will not count towards account liquidity calculations.


function exitMarket(address fToken) returns (uint)
  • msg.sender: The account which shall enter the given markets.
  • fTokens: The addresses of the fToken markets to enter.
  • RETURN: For each market, returns an error code indicating whether or not it was entered. Each is 0 on success, otherwise an Error Code


Unitroller troll = Unitroller(0xABCD...);
fToken[] memory fTokens = new fToken[](2);
fTokens[0] = CErc20(0x3FDA...);
fTokens[1] = CEther(0x3FDB...);
uint[] memory errors = troll.enterMarkets(fTokens);

Web3 1.0

const troll =;
const fTokens = [,];
const errors = await troll.methods.enterMarkets(fTokens).send({from: ...});