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
_assetManager
address
The AssetManager
setFloor
Set the floor balance for this token. When assets are deposited into adapters the floors are filled first
Parameters
tokenAddress
address
The Token address
floor
uint256
Floor balance
setCeiling
Set the ceiling balance for this token. The ceiling is the max balance we want to be managed by this adapter
Parameters
tokenAddress
address
The Token address
ceiling
uint256
Ceiling balance
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
tokenAddress
address
The token to check supply for
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
tokenAddress
address
The token to check supply for
supportsToken
Check if this token is supported
Parameters
tokenAddress
address
The token to check
deposit
Deposits the given amount of tokens in the underlying money market.
withdraw
Withdraw tokens from this adapter Only callable by the AssetManager
Parameters
tokenAddress
address
Token to withdraw
recipient
address
Recieved by
tokenAmount
uint256
Amount of tokens to withdraw
withdrawAll
Withdraw entire balance of this token Only callable by AssetManager
Parameters
tokenAddress
address
Token to withdraw
recipient
address
Recieved by
claimRewards
_supportsToken
_getSupply
Last updated