RiskFundConverter
RiskFundConverter
This contract extends the AbtractTokenConverter contract. It maintains a distribution of assets per comptroller and assets. ProtocolShareReserve will send RiskFund's share of income to this contract which will convert the assets and send them to RiskFund.
Solidity API
CORE_POOL_COMPTROLLER
Address of the core pool comptroller
VBNB
Address of the vBNB
NATIVE_WRAPPED
Address of the native wrapped currency
poolRegistry
Address of pool registry contract
poolsAssetsDirectTransfer
The mapping contains the assets for each pool which are sent to RiskFund directly
setPoolsAssetsDirectTransfer
Update the poolsAssetsDirectTransfer mapping
Parameters
Name | Type | Description |
---|---|---|
comptrollers | address[] | Addresses of the pools |
assets | address[][] | Addresses of the assets need to be added for direct transfer |
values | bool[][] | Boolean value to indicate whether direct transfer is allowed for each asset. |
📅 Events
PoolAssetsDirectTransferUpdated emits on success
⛔️ Access Requirements
Restricted by ACM
balanceOf
Get the balance for specific token
Parameters
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of the token |
Return Values
Name | Type | Description |
---|---|---|
tokenBalance | uint256 | Reserves of the token the contract has |
getPools
Get the array of all pools addresses
Parameters
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of the token |
Return Values
Name | Type | Description |
---|---|---|
poolsWithCore | address[] | Array of the pools addresses in which token is available |
Last updated