interface IBErc20Token
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:
The amount of the underlying asset to supply
Return values:
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
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:
The number of cTokens to redeem into underlying
Return values:
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
redeemUnderlying (0x852a12e3)
Sender redeems cTokens in exchange for a specified amount of underlying asset
Accrues interest whether or not the operation succeeds, unless reverted
Parameters:
The amount of underlying to redeem
Return values:
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
borrow (0xc5ebeaec)
Sender borrows assets from the protocol to their own address
Parameters:
The amount of the underlying asset to borrow
Return values:
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
repayBorrow (0x0e752702)
Sender repays their own borrow
Parameters:
Return values:
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
repayBorrowBehalf (0x2608f818)
Sender repays a borrow belonging to borrower
Parameters:
the account with the debt being payed off
Return values:
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
liquidateBorrow (0xf5e3c462)
The sender liquidates the borrowers collateral. The collateral seized is transferred to the liquidator.
Parameters:
The borrower of this cToken to be liquidated
The amount of the underlying borrowed asset to repay
The market in which to seize collateral from the borrower
Return values:
uint256 0=success, otherwise a failure (see ErrorReporter.sol for details)
balanceOf (0x70a08231)
Get the token balance of the owner
Parameters:
The address of the account to query
Return values:
The number of tokens owned by owner
accountTokens (0xa19d1460)
Get the underlying balance of the owner
This also accrues interest in a transaction
Parameters:
The address of the account to query
Return values:
The amount of underlying owned by owner