Skip to content

Latest commit

 

History

History
394 lines (325 loc) · 10.7 KB

ILiquidityEngine.md

File metadata and controls

394 lines (325 loc) · 10.7 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 LendingPeriodSet(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;

setLendingPeriods

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;

getLendingPeriods

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

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

Contracts