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:

NameTypeDescription

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)

function redeemTo(
    address redeemer,
    uint256 redeemTokens
) external returns (uint256)

Sender redeems cTokens in exchange for the underlying asset

Accrues interest whether or not the operation succeeds, unless reverted

Parameters:

NameTypeDescription

redeemTokens

uint256

The number of cTokens to redeem into underlying

Return values:

NameTypeDescription

[0]

uint256

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

redeemUnderlyingTo (0x6664aa78)

function redeemUnderlyingTo(
    address redeemer,
    uint256 redeemAmount
) external returns (uint256)

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

Accrues interest whether or not the operation succeeds, unless reverted

Parameters:

NameTypeDescription

redeemAmount

uint256

The amount of underlying to redeem

Return values:

NameTypeDescription

[0]

uint256

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

borrowTo (0xfda0241d)

function borrowTo(
    address borrower,
    uint256 borrowAmount
) external returns (uint256 borrowError)

repayTo (0x99c93213)

function repayTo(
    address payer,
    address borrower,
    uint256 repayAmount
) external returns (uint256 repayBorrowError, uint256 amountRepayed)

repayBorrowToBorrower (0xc8146d33)

function repayBorrowToBorrower(
    address projectToken,
    address payer,
    address borrower,
    uint256 repayAmount
) external returns (uint256 repayBorrowError, uint256 amountRepayed)

balanceOf (0x70a08231)

function balanceOf(address owner) external view returns (uint256)

Get the token balance of the owner

Parameters:

NameTypeDescription

owner

address

The address of the account to query

Return values:

NameTypeDescription

[0]

uint256

The number of tokens owned by owner

borrowBalanceCurrent (0x17bfdfbc)

function borrowBalanceCurrent(address account) external returns (uint256)

borrowBalanceStored (0x95dd9193)

function borrowBalanceStored(address account) external view returns (uint256)

totalSupply (0x18160ddd)

function totalSupply() external view returns (uint256)

totalBorrows (0x47bd3718)

function totalBorrows() external view returns (uint256)

exchangeRateStored (0x182df0f5)

function exchangeRateStored() external view returns (uint256)

underlying (0x6f307dc3)

function underlying() external view returns (address)

getEstimatedBorrowBalanceStored (0xb9ade142)

function getEstimatedBorrowBalanceStored(
    address account
) external view returns (uint256 accrual)

Last updated