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 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

Return true if it's supported asset, false otherwise

Parameters:

  • asset: address of the asset

Function isDepositAsset(address asset) β†’ bool

Return true if it's deposit asset, false otherwise

Parameters:

  • asset: address of the asset

Function 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)

Change assets of the pool

Parameters:

  • _addAssets: array of assets to add
  • _removeAssets: array of asset addresses to remove

Function getSupportedAssets() β†’ struct IHasSupportedAsset.Asset[]

Get all the supported assets

Return Values:

  • Return array of supported assets

Function getDepositAssets() β†’ address[]

Get all the deposit assets

Return Values:

  • Return array of deposit assets' addresses

Function 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

Get asset decimal

Return Values:

  • decimal of the asset

Function assetValue(address asset, uint256 amount) β†’ uint256 value

Get value of the asset

Parameters:

  • asset: address of the asset
  • amount: amount of the asset

Return Values:

  • value of the asset

Function 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

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

Return the total fund value of the pool

Return Values:

  • value in USD

Function getManagerFee() β†’ uint256, uint256

Return the manager fees

Function 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

Get maximum manager fee change

Return Values:

  • change change of the maximum manager fee

Function setManagerFeeNumerator(uint256 numerator)

Manager can decrease performance fee

Parameters:

  • numerator: numberator of the performance fee to set

Function announceManagerFeeIncrease(uint256 numerator)

Manager can announce an increase to the performance fee

Function renounceManagerFeeIncrease()

Manager can cancel the performance fee increase

Function commitManagerFeeIncrease()

Manager can commit the performance fee increase

Function getManagerFeeIncreaseInfo() β†’ uint256, uint256

Get manager fee increase information

Function setPoolLogic(address _poolLogic) β†’ bool

Setter for poolLogic contract
Last modified 4mo ago
Copy link
Contents
Functions:
Events:
Function initialize(address _factory, address _manager, string _managerName, address _poolLogic, uint256 _managerFeeNumerator, struct IHasSupportedAsset.Asset[] _supportedAssets)
Parameters:
Function isSupportedAsset(address asset) β†’ bool
Parameters:
Function isDepositAsset(address asset) β†’ bool
Parameters:
Function validateAsset(address asset) β†’ bool
Parameters:
Function changeAssets(struct IHasSupportedAsset.Asset[] _addAssets, address[] _removeAssets)
Parameters:
Function getSupportedAssets() β†’ struct IHasSupportedAsset.Asset[]
Return Values:
Function getDepositAssets() β†’ address[]
Return Values:
Function assetBalance(address asset) β†’ uint256 balance
Return Values:
Function assetDecimal(address asset) β†’ uint256 decimal
Return Values:
Function assetValue(address asset, uint256 amount) β†’ uint256 value
Parameters:
Return Values:
Function assetValue(address asset) β†’ uint256 value
Parameters:
Return Values:
Function getFundComposition() β†’ struct IHasSupportedAsset.Asset[] assets, uint256[] balances, uint256[] rates
Return Values:
Function totalFundValue() β†’ uint256
Return Values:
Function getManagerFee() β†’ uint256, uint256
Function getMaximumManagerFee() β†’ uint256 numerator, uint256 denominator
Return Values:
Function getMaximumManagerFeeChange() β†’ uint256 change
Return Values:
Function setManagerFeeNumerator(uint256 numerator)
Parameters:
Function announceManagerFeeIncrease(uint256 numerator)
Function renounceManagerFeeIncrease()
Function commitManagerFeeIncrease()
Function getManagerFeeIncreaseInfo() β†’ uint256, uint256
Function setPoolLogic(address _poolLogic) β†’ bool