Skip to content

Latest commit

 

History

History
417 lines (342 loc) · 11.3 KB

ILiquidityEngine.md

File metadata and controls

417 lines (342 loc) · 11.3 KB

ILiquidityEngine.sol

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 RiskPoolingPeriodSet(bytes32 indexed coverKey, uint256  lendingPeriod, uint256  withdrawalWindow);
event LiquidityStateUpdateIntervalSet(uint256  duration);
event MaxLendingRatioSet(uint256  ratio);

Functions

addStrategies

function addStrategies(address[] strategies) external nonpayable

Arguments

Name Type Description
strategies address[]
Source Code
function addStrategies(address[] calldata strategies) external;

disableStrategy

function disableStrategy(address strategy) external nonpayable

Arguments

Name Type Description
strategy address
Source Code
function disableStrategy(address strategy) external;

deleteStrategy

function deleteStrategy(address strategy) external nonpayable

Arguments

Name Type Description
strategy address
Source Code
function deleteStrategy(address strategy) external;

setRiskPoolingPeriods

function setRiskPoolingPeriods(bytes32 coverKey, uint256 lendingPeriod, uint256 withdrawalWindow) external nonpayable

Arguments

Name Type Description
coverKey bytes32
lendingPeriod uint256
withdrawalWindow uint256
Source Code
function setRiskPoolingPeriods(
    bytes32 coverKey,
    uint256 lendingPeriod,
    uint256 withdrawalWindow
  ) external;

getRiskPoolingPeriods

function getRiskPoolingPeriods(bytes32 coverKey) external view
returns(lendingPeriod uint256, withdrawalWindow uint256)

Arguments

Name Type Description
coverKey bytes32
Source Code
function getRiskPoolingPeriods(bytes32 coverKey) external view returns (uint256 lendingPeriod, uint256 withdrawalWindow);

setLiquidityStateUpdateInterval

function setLiquidityStateUpdateInterval(uint256 value) external nonpayable

Arguments

Name Type Description
value uint256
Source Code
function setLiquidityStateUpdateInterval(uint256 value) external;

setMaxLendingRatio

function setMaxLendingRatio(uint256 ratio) external nonpayable

Arguments

Name Type Description
ratio uint256
Source Code
function setMaxLendingRatio(uint256 ratio) external;

getMaxLendingRatio

function getMaxLendingRatio() external view
returns(ratio uint256)

Arguments

Name Type Description
Source Code
function getMaxLendingRatio() external view returns (uint256 ratio);

getDisabledStrategies

function getDisabledStrategies() external view
returns(strategies address[])

Arguments

Name Type Description
Source Code
function getDisabledStrategies() external view returns (address[] memory strategies);

getActiveStrategies

function getActiveStrategies() external view
returns(strategies address[])

Arguments

Name Type Description
Source Code
function getActiveStrategies() external view returns (address[] memory strategies);

addBulkLiquidity

function addBulkLiquidity(struct IVault.AddLiquidityArgs[] args) external nonpayable

Arguments

Name Type Description
args struct IVault.AddLiquidityArgs[]
Source Code
function addBulkLiquidity(IVault.AddLiquidityArgs[] calldata args) external;

Contracts