IB Lending Token
Methods
balanceOf
Get the token balance of the owner
Parameters
owner
address
The address of the account to query
Returns
_0
uint256
The number of tokens owned by owner
borrowBalanceCurrent
Parameters
account
address
undefined
Returns
_0
uint256
undefined
borrowBalanceStored
Parameters
account
address
undefined
Returns
_0
uint256
undefined
borrowTo
Parameters
projectToken
address
undefined
borrower
address
undefined
borrowAmount
uint256
undefined
Returns
borrowError
uint256
undefined
exchangeRateStored
Returns
_0
uint256
undefined
mintTo
Sender supplies assets into the market and receives cTokens in exchange
Accrues interest whether or not the operation succeeds, unless reverted
Parameters
minter
address
the address of account which earn liquidity
mintAmount
uint256
The amount of the underlying asset to supply to minter return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) return uint minted amount
Returns
err
uint256
undefined
mintedAmount
uint256
undefined
redeemTo
Sender redeems cTokens in exchange for the underlying asset
Accrues interest whether or not the operation succeeds, unless reverted
Parameters
redeemer
address
undefined
redeemTokens
uint256
The number of cTokens to redeem into underlying
Returns
_0
uint256
uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
redeemUnderlyingTo
Sender redeems cTokens in exchange for a specified amount of underlying asset
Accrues interest whether or not the operation succeeds, unless reverted
Parameters
redeemer
address
undefined
redeemAmount
uint256
The amount of underlying to redeem
Returns
_0
uint256
uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
repayBorrowTo
Parameters
projectToken
address
undefined
payer
address
undefined
repayAmount
uint256
undefined
Returns
repayBorrowError
uint256
undefined
amountRepayed
uint256
undefined
repayBorrowToBorrower
Parameters
projectToken
address
undefined
payer
address
undefined
borrower
address
undefined
repayAmount
uint256
undefined
Returns
repayBorrowError
uint256
undefined
amountRepayed
uint256
undefined
totalBorrows
Returns
_0
uint256
undefined
totalSupply
Returns
_0
uint256
undefined
Last updated