Burn

Users may burn their iTokens to retrieve the underlying assets. One cannot withdraw more assets than are currently available in the pool.

Burn to ERC20

Call burn to withdraw the underlying assets from the lending pool. If the iTokens reside on the Liquidity Mining Contract, they can be retrieved in the same transaction.

function burn(address receiver, uint256 burnAmount, bool useLM) external nonpayable nonReentrant globallyNonReentrant 
returns(uint256 redeemed)

Arguments

Name
Type
Description

receiver

address

the receiver of the underlying tokens. note: potential LM rewards are always sent to the msg.sender

burnAmount

uint256

the amount of pool tokens to redeem.

useLM

bool

if true -> retrieve the pool tokens into the Liquidity Mining contract

Returns

The amount of tokens redeemed.

Burn to RBTC

function burnToBTC(address receiver, uint256 burnAmount, bool useLM) external nonpayable nonReentrant globallyNonReentrant 
returns(uint256 loanAmountPaid)

Arguments

Name
Type
Description

receiver

address

the receiver of the underlying tokens. note: potential LM rewards are always sent to the msg.sender

burnAmount

uint256

the amount of pool tokens to redeem.

useLM

bool

if true -> retrieve the pool tokens into the Liquidity Mining contract

Last updated