Skip to content

Latest commit

 

History

History
222 lines (201 loc) · 6.9 KB

MockCoverUtilUser.md

File metadata and controls

222 lines (201 loc) · 6.9 KB

MockCoverUtilUser.sol

View Source: contracts/mock/lib-user/MockCoverUtil.sol

MockCoverUtilUser

Contract Members

Constants & Variables

contract IStore public s;

Functions

function (IStore store) public nonpayable

Arguments

Name Type Description
store IStore
Source Code
constructor(IStore store) {
    s = store;
  }

getActiveLiquidityUnderProtection

function getActiveLiquidityUnderProtection(bytes32 coverKey, bytes32 productKey) external view
returns(uint256)

Arguments

Name Type Description
coverKey bytes32
productKey bytes32
Source Code
function getActiveLiquidityUnderProtection(bytes32 coverKey, bytes32 productKey) external view returns (uint256) {
    uint256 precision = s.getStablecoinPrecisionInternal();
    return s.getActiveLiquidityUnderProtectionInternal(coverKey, productKey, precision);
  }

Contracts