Exit Markets

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

Qore

function exitMarket(address qToken) external;
  • msg.sender: The account which shall exit the given market.

  • qToken: The address of the qToken market to exit.

Solidity

Qore qore = Qore(<qoreAddress>);
qore.exitMarket(<qTokenAddress>);

Ethers.js

const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
await qore.exitMarket(<qTokenAddress>);

Last updated