PureTokenAdapter
assetManager
The address of the AssetManager
floorMap
Mapping of token address to floor balance
ceilingMap
Mapping of token address to ceiling balance
__PureTokenAdapter_init
TokenNotSupported
SenderNotAssetManager
checkTokenSupported
Check supplied token address is supported
onlyAssetManager
Check sender is the asset manager
setAssetManager
Set the asset manager contract
Parameters
setFloor
Set the floor balance for this token. When assets are deposited into adapters the floors are filled first
Parameters
setCeiling
Set the ceiling balance for this token. The ceiling is the max balance we want to be managed by this adapter
Parameters
getRate
Get the underlying market rate The PureAdapter doesn't have an underlying market so we return 0
getSupply
Get total supply of this Contracts
Parameters
getSupplyView
Get total supply of this Contracts including any balance that has been deposited into the underlying market. As the PureAdapter doesn't have an underlying market this is the same as getSupply
Parameters
supportsToken
Check if this token is supported
Parameters
deposit
Deposits the given amount of tokens in the underlying money market.
withdraw
Withdraw tokens from this adapter Only callable by the AssetManager
Parameters
withdrawAll
Withdraw entire balance of this token Only callable by AssetManager
Parameters
claimRewards
_supportsToken
_getSupply
Last updated