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