exitMarket
tokenId -> storage upd
Allows user to indicate that underying token is no longer used as collateral by tokenId
.
The yToken
contract expects that underlying token infos of tokenId
and all borrowed by user before tokenId
s are updated by calling PriceFeed.getPrice and updateInterest in the same block before this contract method
Types
Usage
Errors
yToken/debt-not-repaid
- user has unpaid debt.yToken/need-update
- token price and interest not updated (see warning above)yToken/yToken-undefined
- token identifier is not assigned to any known yTokens.
Last updated