Bondtroller
Bonded
Remastered from Compound's Bondtroller Contract
Methods
_borrowGuardianPaused
Returns
_mintGuardianPaused
Returns
accountAssets
Per-account mapping of "assets you are in", capped by maxAssets
Parameters
Returns
accountMembership
Per-market mapping of "accounts in this asset"
Parameters
Returns
admin
Administrator for this contract
Returns
allMarkets
A list of all markets
Parameters
Returns
borrowAllowed
Checks if the account should be allowed to borrow the underlying asset of the given market
Parameters
Returns
borrowCapGuardian
Returns
borrowCaps
Parameters
Returns
borrowGuardianPaused
Parameters
Returns
borrowVerify
Validates borrow and reverts on rejection. May emit logs.
Parameters
checkMembership
Returns whether the given account is entered in the given asset
Parameters
Returns
closeFactorMantissa
Multiplier used to calculate the maximum repayAmount when liquidating a borrow
Returns
compAccrued
The COMP accrued but not yet transferred to each user
Parameters
Returns
compBorrowState
The COMP market borrow state for each market
Parameters
Returns
compBorrowerIndex
The COMP borrow index for each market for each borrower as of the last time they accrued COMP
Parameters
Returns
compContributorSpeeds
The portion of COMP that each contributor receives per block
Parameters
Returns
compRate
The rate at which the flywheel distributes COMP, per block
Returns
compSpeeds
The portion of compRate that each market currently receives
Parameters
Returns
compSupplierIndex
The COMP borrow index for each market for each supplier as of the last time they accrued COMP
Parameters
Returns
compSupplyState
The COMP market supply state for each market
Parameters
Returns
enterMarket
Add asset to be included in account liquidity calculation
Parameters
Returns
enterMarkets
Add assets to be included in account liquidity calculation
Parameters
Returns
exitMarket
Removes asset from sender's account liquidity calculation
Sender must not have an outstanding borrow balance in the asset, or be providing necessary collateral for an outstanding borrow.
Parameters
Returns
getAllMarkets
Return all of the markets
The automatic getter may be used to access an individual market.
Returns
getAssetsIn
Returns the assets an account has entered
Parameters
Returns
getBlockNumber
Returns
getPrimaryIndexTokenAddress
Returns
init
isBondtroller
watermark that says that this is Bondtroller
Returns
isDeprecated
Returns true if the given bToken market has been deprecated
All borrows in a deprecated bToken market can be immediately liquidated
Parameters
Returns
lastContributorBlock
Last block at which a contributor's COMP rewards have been allocated
Parameters
Returns
liquidationIncentiveMantissa
Multiplier representing the discount on collateral that a liquidator receives
Returns
markets
Official mapping of BTokens -> Market metadata
Parameters
Returns
maxAssets
Max number of assets a single account can participate in (borrow or use as collateral)
Returns
mintAllowed
Checks if the account should be allowed to mint tokens in the given market
Parameters
Returns
mintGuardianPaused
Parameters
Returns
mintVerify
Validates mint and reverts on rejection. May emit logs.
Parameters
oracle
Oracle which gives the price of any given asset
Returns
pauseGuardian
The Pause Guardian can pause certain actions as a safety mechanism. Actions which allow users to remove their own assets cannot be paused. Liquidation / seizing / transfer can only be paused globally, not by market.
Returns
primaryIndexToken
the address of primary index token
Returns
redeemAllowed
Checks if the account should be allowed to redeem tokens in the given market
Parameters
Returns
redeemVerify
Validates redeem and reverts on rejection. May emit logs.
Parameters
repayBorrowAllowed
Checks if the account should be allowed to repay a borrow in the given market
Parameters
Returns
repayBorrowVerify
Validates repayBorrow and reverts on rejection. May emit logs.
Parameters
seizeGuardianPaused
Returns
setBorrowCapGuardian
Admin function to change the Borrow Cap Guardian
Parameters
setBorrowPaused
Parameters
Returns
setMarketBorrowCaps
Set the given borrow caps for the given bToken markets. Borrowing that brings total borrows to or above borrow cap will revert.
Admin or borrowCapGuardian function to set the borrow caps. A borrow cap of 0 corresponds to unlimited borrowing.
Parameters
setMintPaused
Parameters
Returns
setPauseGuardian
Admin function to change the Pause Guardian
Parameters
Returns
setPriceOracle
Sets a new price oracle for the bondtroller
Admin function to set a new price oracle
Parameters
Returns
setPrimaryIndexTokenAddress
Parameters
Returns
setSeizePaused
Parameters
Returns
setTransferPaused
Parameters
Returns
supportMarket
Add the market to the markets mapping and set it as listed
Admin function to set isListed and add support for the market
Parameters
Returns
transferAllowed
Checks if the account should be allowed to transfer tokens in the given market
Parameters
Returns
transferGuardianPaused
Returns
transferVerify
Validates transfer and reverts on rejection. May emit logs.
Parameters
Events
ActionPaused
Emitted when an action is paused globally
Parameters
CompGranted
Emitted when COMP is granted by admin
Parameters
Failure
Parameters
MarketEntered
Emitted when an account enters a market
Parameters
MarketExited
Emitted when an account exits a market
Parameters
MarketListed
Emitted when an admin supports a market
Parameters
NewBorrowCap
Emitted when borrow cap for a bToken is changed
Parameters
NewBorrowCapGuardian
Emitted when borrow cap guardian is changed
Parameters
NewPauseGuardian
Emitted when pause guardian is changed
Parameters
NewPriceOracle
Emitted when price oracle is changed
Parameters
NewPrimaryIndexToken
Parameters
Last updated