PoolManagerLogic
Logic implmentation for pool manager
Functions:
Events:
Function initialize(address _factory, address _manager, string _managerName, address _poolLogic, uint256 _managerFeeNumerator, struct IHasSupportedAsset.Asset[] _supportedAssets)
initialize(address _factory, address _manager, string _managerName, address _poolLogic, uint256 _managerFeeNumerator, struct IHasSupportedAsset.Asset[] _supportedAssets)
initialize the pool manager
Parameters:
_factory
: address of the factory_manager
: address of the manager_managerName
: name of the manager_poolLogic
: address of the pool logic_managerFeeNumerator
: numerator of the manager fee_supportedAssets
: array of supported assets
Function isSupportedAsset(address asset) → bool
isSupportedAsset(address asset) → bool
Return true if it's supported asset, false otherwise
Parameters:
asset
: address of the asset
Function isDepositAsset(address asset) → bool
isDepositAsset(address asset) → bool
Return true if it's deposit asset, false otherwise
Parameters:
asset
: address of the asset
Function validateAsset(address asset) → bool
validateAsset(address asset) → bool
Return true if it's valid asset, false otherwise
Parameters:
asset
: address of the asset
Function changeAssets(struct IHasSupportedAsset.Asset[] _addAssets, address[] _removeAssets)
changeAssets(struct IHasSupportedAsset.Asset[] _addAssets, address[] _removeAssets)
Change assets of the pool
Parameters:
_addAssets
: array of assets to add_removeAssets
: array of asset addresses to remove
Function getSupportedAssets() → struct IHasSupportedAsset.Asset[]
getSupportedAssets() → struct IHasSupportedAsset.Asset[]
Get all the supported assets
Return Values:
Return array of supported assets
Function getDepositAssets() → address[]
getDepositAssets() → address[]
Get all the deposit assets
Return Values:
Return array of deposit assets' addresses
Function assetBalance(address asset) → uint256 balance
assetBalance(address asset) → uint256 balance
Get asset balance including any staked balance in external contracts
Return Values:
balance of the asset
Function assetDecimal(address asset) → uint256 decimal
assetDecimal(address asset) → uint256 decimal
Get asset decimal
Return Values:
decimal of the asset
Function assetValue(address asset, uint256 amount) → uint256 value
assetValue(address asset, uint256 amount) → uint256 value
Get value of the asset
Parameters:
asset
: address of the assetamount
: amount of the asset
Return Values:
value of the asset
Function assetValue(address asset) → uint256 value
assetValue(address asset) → uint256 value
Get value of the asset
Parameters:
asset
: address of the asset
Return Values:
value of the asset
Function getFundComposition() → struct IHasSupportedAsset.Asset[] assets, uint256[] balances, uint256[] rates
getFundComposition() → struct IHasSupportedAsset.Asset[] assets, uint256[] balances, uint256[] rates
Return the fund composition of the pool
Return Values:
assets array of supported assets
balances balances of each asset
rates price of each asset in USD
Function totalFundValue() → uint256
totalFundValue() → uint256
Return the total fund value of the pool
Return Values:
value in USD
Function getManagerFee() → uint256, uint256
getManagerFee() → uint256, uint256
Return the manager fees
Function getMaximumManagerFee() → uint256 numerator, uint256 denominator
getMaximumManagerFee() → uint256 numerator, uint256 denominator
Get maximum manager fee
Return Values:
numerator numberator of the maximum manager fee
denominator denominator of the maximum manager fee
Function getMaximumManagerFeeChange() → uint256 change
getMaximumManagerFeeChange() → uint256 change
Get maximum manager fee change
Return Values:
change change of the maximum manager fee
Function setManagerFeeNumerator(uint256 numerator)
setManagerFeeNumerator(uint256 numerator)
Manager can decrease performance fee
Parameters:
numerator
: numberator of the performance fee to set
Function announceManagerFeeIncrease(uint256 numerator)
announceManagerFeeIncrease(uint256 numerator)
Manager can announce an increase to the performance fee
Function renounceManagerFeeIncrease()
renounceManagerFeeIncrease()
Manager can cancel the performance fee increase
Function commitManagerFeeIncrease()
commitManagerFeeIncrease()
Manager can commit the performance fee increase
Function getManagerFeeIncreaseInfo() → uint256, uint256
getManagerFeeIncreaseInfo() → uint256, uint256
Get manager fee increase information
Function setPoolLogic(address _poolLogic) → bool
setPoolLogic(address _poolLogic) → bool
Setter for poolLogic contract
Last updated