IBErc20Token

Overview

License: MIT

interface IBErc20Token

Functions info

mint (0xa0712d68)

function mint(uint256 mintAmount) external returns (uint256)

Sender supplies assets into the market and receives cTokens in exchange

Accrues interest whether or not the operation succeeds, unless reverted

Parameters:

Return values:

redeem (0xdb006a75)

function redeem(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:

redeemUnderlying (0x852a12e3)

function redeemUnderlying(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:

borrow (0xc5ebeaec)

function borrow(uint256 borrowAmount) external returns (uint256)

Sender borrows assets from the protocol to their own address

Parameters:

Return values:

repayBorrow (0x0e752702)

function repayBorrow(uint256 repayAmount) external returns (uint256)

Sender repays their own borrow

Parameters:

Return values:

repayBorrowBehalf (0x2608f818)

function repayBorrowBehalf(
    address borrower,
    uint256 repayAmount
) external returns (uint256)

Sender repays a borrow belonging to borrower

Parameters:

Return values:

liquidateBorrow (0xf5e3c462)

function liquidateBorrow(
    address borrower,
    uint256 repayAmount,
    address cTokenCollateral
) external returns (uint256)

The sender liquidates the borrowers collateral. The collateral seized is transferred to the liquidator.

Parameters:

Return values:

balanceOf (0x70a08231)

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

Get the token balance of the owner

Parameters:

Return values:

accountTokens (0xa19d1460)

function accountTokens(address owner) external returns (uint256)

Get the underlying balance of the owner

This also accrues interest in a transaction

Parameters:

Return values:

Last updated