B Token Interface
Methods
_acceptAdmin
Returns
_0
uint256
undefined
_reduceReserves
Parameters
reduceAmount
uint256
undefined
Returns
_0
uint256
undefined
_setBondtroller
Parameters
newBondtroller
contract Bondtroller
undefined
Returns
_0
uint256
undefined
_setInterestRateModel
Parameters
newInterestRateModel
contract InterestRateModel
undefined
Returns
_0
uint256
undefined
_setPendingAdmin
Parameters
newPendingAdmin
address payable
undefined
Returns
_0
uint256
undefined
_setReserveFactor
Parameters
newReserveFactorMantissa
uint256
undefined
Returns
_0
uint256
undefined
accountTokens
Official record of token balances for each account
Parameters
_0
address
undefined
Returns
_0
uint256
undefined
accrualBlockNumber
Block number that interest was last accrued at
Returns
_0
uint256
undefined
accrueInterest
Returns
_0
uint256
undefined
admin
Administrator for this contract
Returns
_0
address payable
undefined
allowance
Parameters
owner
address
undefined
spender
address
undefined
Returns
_0
uint256
undefined
approve
Parameters
spender
address
undefined
amount
uint256
undefined
Returns
_0
bool
undefined
balanceOf
Parameters
owner
address
undefined
Returns
_0
uint256
undefined
balanceOfUnderlying
Parameters
owner
address
undefined
Returns
_0
uint256
undefined
bondtroller
Contract which oversees inter-cToken operations
Returns
_0
contract Bondtroller
undefined
borrowBalanceCurrent
Parameters
account
address
undefined
Returns
_0
uint256
undefined
borrowBalanceStored
Parameters
account
address
undefined
Returns
_0
uint256
undefined
borrowIndex
Accumulator of the total earned interest rate since the opening of the market
Returns
_0
uint256
undefined
borrowRatePerBlock
Returns
_0
uint256
undefined
decimals
EIP-20 token decimals for this token
Returns
_0
uint8
undefined
exchangeRateCurrent
Returns
_0
uint256
undefined
exchangeRateStored
Returns
_0
uint256
undefined
getAccountSnapshot
Parameters
account
address
undefined
Returns
_0
uint256
undefined
_1
uint256
undefined
_2
uint256
undefined
_3
uint256
undefined
getCash
Returns
_0
uint256
undefined
interestRateModel
Model which tells what the current interest rate should be
Returns
_0
contract InterestRateModel
undefined
isCToken
Indicator that this is a CToken contract (for inspection)
Returns
_0
bool
undefined
name
EIP-20 token name for this token
Returns
_0
string
undefined
pendingAdmin
Pending administrator for this contract
Returns
_0
address payable
undefined
protocolSeizeShareMantissa
Share of seized collateral that is added to reserves
Returns
_0
uint256
undefined
reserveFactorMantissa
Fraction of interest currently set aside for reserves
Returns
_0
uint256
undefined
supplyRatePerBlock
Returns
_0
uint256
undefined
symbol
EIP-20 token symbol for this token
Returns
_0
string
undefined
totalBorrows
Total amount of outstanding borrows of the underlying in this market
Returns
_0
uint256
undefined
totalBorrowsCurrent
Returns
_0
uint256
undefined
totalReserves
Total amount of reserves of the underlying held in this market
Returns
_0
uint256
undefined
totalSupply
Total number of tokens in circulation
Returns
_0
uint256
undefined
transfer
Failure event
Parameters
dst
address
undefined
amount
uint256
undefined
Returns
_0
bool
undefined
transferFrom
Parameters
src
address
undefined
dst
address
undefined
amount
uint256
undefined
Returns
_0
bool
undefined
Events
AccrueInterest
Event emitted when interest is accrued
Parameters
cashPrior
uint256
undefined
interestAccumulated
uint256
undefined
borrowIndex
uint256
undefined
totalBorrows
uint256
undefined
Approval
EIP20 Approval event
Parameters
owner indexed
address
undefined
spender indexed
address
undefined
amount
uint256
undefined
Borrow
Event emitted when underlying is borrowed
Parameters
borrower
address
undefined
borrowAmount
uint256
undefined
accountBorrows
uint256
undefined
totalBorrows
uint256
undefined
LiquidateBorrow
Event emitted when a borrow is liquidated
Parameters
liquidator
address
undefined
borrower
address
undefined
repayAmount
uint256
undefined
cTokenCollateral
address
undefined
seizeTokens
uint256
undefined
Mint
Event emitted when tokens are minted
Parameters
minter
address
undefined
mintAmount
uint256
undefined
mintTokens
uint256
undefined
NewAdmin
Event emitted when pendingAdmin is accepted, which means admin is updated
Parameters
oldAdmin
address
undefined
newAdmin
address
undefined
NewBondtroller
Event emitted when bondtroller is changed
Parameters
oldBondtroller
contract Bondtroller
undefined
newBondtroller
contract Bondtroller
undefined
NewMarketInterestRateModel
Event emitted when interestRateModel is changed
Parameters
oldInterestRateModel
contract InterestRateModel
undefined
newInterestRateModel
contract InterestRateModel
undefined
NewPendingAdmin
Event emitted when pendingAdmin is changed
Parameters
oldPendingAdmin
address
undefined
newPendingAdmin
address
undefined
NewReserveFactor
Event emitted when the reserve factor is changed
Parameters
oldReserveFactorMantissa
uint256
undefined
newReserveFactorMantissa
uint256
undefined
Redeem
Event emitted when tokens are redeemed
Parameters
redeemer
address
undefined
redeemAmount
uint256
undefined
redeemTokens
uint256
undefined
RepayBorrow
Event emitted when a borrow is repaid
Parameters
payer
address
undefined
borrower
address
undefined
repayAmount
uint256
undefined
accountBorrows
uint256
undefined
totalBorrows
uint256
undefined
ReservesAdded
Event emitted when the reserves are added
Parameters
benefactor
address
undefined
addAmount
uint256
undefined
newTotalReserves
uint256
undefined
ReservesReduced
Event emitted when the reserves are reduced
Parameters
admin
address
undefined
reduceAmount
uint256
undefined
newTotalReserves
uint256
undefined
Transfer
EIP20 Transfer event
Parameters
from indexed
address
undefined
to indexed
address
undefined
amount
uint256
undefined
Last updated