IBLendingToken

Overview

License: MIT

interface IBLendingToken

Functions info

mintTo (0x449a52f8)

function mintTo(
    address minter,
    uint256 mintAmount
) external returns (uint256 err, uint256 mintedAmount)

Sender supplies assets into the market and receives cTokens in exchange

Accrues interest whether or not the operation succeeds, unless reverted

Parameters:

Name
Type
Description

minter

address

the address of account which earn liquidity

mintAmount

uint256

The amount of the underlying asset to supply to minter

return uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)

return uint256 minted amount

redeemTo (0x2f7605fb)

Sender redeems cTokens in exchange for the underlying asset

Accrues interest whether or not the operation succeeds, unless reverted

Parameters:

Name
Type
Description

redeemTokens

uint256

The number of cTokens to redeem into underlying

Return values:

Name
Type
Description

[0]

uint256

uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)

redeemUnderlyingTo (0x6664aa78)

Sender redeems cTokens in exchange for a specified amount of underlying asset

Accrues interest whether or not the operation succeeds, unless reverted

Parameters:

Name
Type
Description

redeemAmount

uint256

The amount of underlying to redeem

Return values:

Name
Type
Description

[0]

uint256

uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)

borrowTo (0xfda0241d)

repayTo (0x99c93213)

repayBorrowToBorrower (0xc8146d33)

balanceOf (0x70a08231)

Get the token balance of the owner

Parameters:

Name
Type
Description

owner

address

The address of the account to query

Return values:

Name
Type
Description

[0]

uint256

The number of tokens owned by owner

borrowBalanceCurrent (0x17bfdfbc)

borrowBalanceStored (0x95dd9193)

totalSupply (0x18160ddd)

totalBorrows (0x47bd3718)

exchangeRateStored (0x182df0f5)

underlying (0x6f307dc3)

getEstimatedBorrowBalanceStored (0xb9ade142)

Last updated