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:

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:

Return values:

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:

Return values:

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:

Return values:

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