View Source: contracts/interfaces/ILiquidityEngine.sol
↗ Extends: IMember ↘ Derived Contracts: LiquidityEngine
ILiquidityEngine
Events
event StrategyAdded(address indexed strategy);
event StrategyDisabled(address indexed strategy);
event StrategyDeleted(address indexed strategy);
event LendingPeriodSet(bytes32 indexed coverKey, uint256 lendingPeriod, uint256 withdrawalWindow);
event LiquidityStateUpdateIntervalSet(uint256 duration);
event MaxLendingRatioSet(uint256 ratio);
- addStrategies(address[] strategies)
- disableStrategy(address strategy)
- deleteStrategy(address strategy)
- setLendingPeriods(bytes32 coverKey, uint256 lendingPeriod, uint256 withdrawalWindow)
- getLendingPeriods(bytes32 coverKey)
- setLiquidityStateUpdateInterval(uint256 value)
- setMaxLendingRatio(uint256 ratio)
- getMaxLendingRatio()
- getDisabledStrategies()
- getActiveStrategies()
function addStrategies(address[] strategies) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
strategies | address[] |
Source Code
function addStrategies(address[] calldata strategies) external;
function disableStrategy(address strategy) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
strategy | address |
Source Code
function disableStrategy(address strategy) external;
function deleteStrategy(address strategy) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
strategy | address |
Source Code
function deleteStrategy(address strategy) external;
function setLendingPeriods(bytes32 coverKey, uint256 lendingPeriod, uint256 withdrawalWindow) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 | |
lendingPeriod | uint256 | |
withdrawalWindow | uint256 |
Source Code
function setLendingPeriods(
bytes32 coverKey,
uint256 lendingPeriod,
uint256 withdrawalWindow
) external;
function getLendingPeriods(bytes32 coverKey) external view
returns(lendingPeriod uint256, withdrawalWindow uint256)
Arguments
Name | Type | Description |
---|---|---|
coverKey | bytes32 |
Source Code
function getLendingPeriods(bytes32 coverKey) external view returns (uint256 lendingPeriod, uint256 withdrawalWindow);
function setLiquidityStateUpdateInterval(uint256 value) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
value | uint256 |
Source Code
function setLiquidityStateUpdateInterval(uint256 value) external;
function setMaxLendingRatio(uint256 ratio) external nonpayable
Arguments
Name | Type | Description |
---|---|---|
ratio | uint256 |
Source Code
function setMaxLendingRatio(uint256 ratio) external;
function getMaxLendingRatio() external view
returns(ratio uint256)
Arguments
Name | Type | Description |
---|
Source Code
function getMaxLendingRatio() external view returns (uint256 ratio);
function getDisabledStrategies() external view
returns(strategies address[])
Arguments
Name | Type | Description |
---|
Source Code
function getDisabledStrategies() external view returns (address[] memory strategies);
function getActiveStrategies() external view
returns(strategies address[])
Arguments
Name | Type | Description |
---|
Source Code
function getActiveStrategies() external view returns (address[] memory strategies);
- AaveStrategy
- AccessControl
- AccessControlLibV1
- Address
- BaseLibV1
- BokkyPooBahsDateTimeLibrary
- BondPool
- BondPoolBase
- BondPoolLibV1
- CompoundStrategy
- Context
- Cover
- CoverBase
- CoverLibV1
- CoverReassurance
- CoverStake
- CoverUtilV1
- cxToken
- cxTokenFactory
- cxTokenFactoryLibV1
- Delayable
- Destroyable
- ERC165
- ERC20
- FakeAaveLendingPool
- FakeCompoundDaiDelegator
- FakePriceOracle
- FakeRecoverable
- FakeStore
- FakeToken
- FakeUniswapPair
- FakeUniswapV2FactoryLike
- FakeUniswapV2PairLike
- FakeUniswapV2RouterLike
- FaultyAaveLendingPool
- FaultyCompoundDaiDelegator
- Finalization
- ForceEther
- Governance
- GovernanceUtilV1
- IAaveV2LendingPoolLike
- IAccessControl
- IBondPool
- IClaimsProcessor
- ICompoundERC20DelegatorLike
- ICover
- ICoverReassurance
- ICoverStake
- ICxToken
- ICxTokenFactory
- IERC165
- IERC20
- IERC20Detailed
- IERC20Metadata
- IERC3156FlashBorrower
- IERC3156FlashLender
- IFinalization
- IGovernance
- ILendingStrategy
- ILiquidityEngine
- IMember
- InvalidStrategy
- IPausable
- IPolicy
- IPolicyAdmin
- IPriceOracle
- IProtocol
- IRecoverable
- IReporter
- IResolution
- IResolvable
- IStakingPools
- IStore
- IStoreLike
- IUniswapV2FactoryLike
- IUniswapV2PairLike
- IUniswapV2RouterLike
- IUnstakable
- IVault
- IVaultDelegate
- IVaultFactory
- IWitness
- LiquidityEngine
- MaliciousToken
- MockAccessControlUser
- MockCoverUtilUser
- MockCxToken
- MockCxTokenPolicy
- MockCxTokenStore
- MockFlashBorrower
- MockLiquidityEngineUser
- MockProcessorStore
- MockProcessorStoreLib
- MockProtocol
- MockRegistryClient
- MockStore
- MockStoreKeyUtilUser
- MockValidationLibUser
- MockVault
- MockVaultLibUser
- NPM
- NpmDistributor
- NTransferUtilV2
- NTransferUtilV2Intermediate
- Ownable
- Pausable
- Policy
- PolicyAdmin
- PolicyHelperV1
- PoorMansERC20
- POT
- PriceLibV1
- Processor
- ProtoBase
- Protocol
- ProtoUtilV1
- Recoverable
- ReentrancyGuard
- RegistryLibV1
- Reporter
- Resolution
- Resolvable
- RoutineInvokerLibV1
- SafeERC20
- StakingPoolBase
- StakingPoolCoreLibV1
- StakingPoolInfo
- StakingPoolLibV1
- StakingPoolReward
- StakingPools
- Store
- StoreBase
- StoreKeyUtil
- StrategyLibV1
- Strings
- TimelockController
- Unstakable
- ValidationLibV1
- Vault
- VaultBase
- VaultDelegate
- VaultDelegateBase
- VaultDelegateWithFlashLoan
- VaultFactory
- VaultFactoryLibV1
- VaultLibV1
- VaultLiquidity
- VaultStrategy
- WithFlashLoan
- WithPausability
- WithRecovery
- Witness