PoolStorage

The current version of PoolStorage inherits from its predecessor which in turn inherits from its predecessor going back to the original implementation, PoolStorageV1.

PoolStorageV1

token

contract IERC20 token

Collateral token address

poolAccountant

address poolAccountant

PoolAccountant address

poolRewards

address poolRewards

PoolRewards contract address

PoolStorageV2

PoolStorageV3

universalFee

uint256 universalFee

Universal fee of this pool. Default to 2%

maxProfitAsFee

uint256 maxProfitAsFee

Maximum percentage of profit that can be counted as universal fee. Default to 50%

minDepositLimit

uint256 minDepositLimit

Minimum deposit limit.

Do not set it to 0 as deposit() is checking if amount >= limit

Last updated