-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathMockCoverUtil.sol
More file actions
25 lines (21 loc) · 791 Bytes
/
Copy pathMockCoverUtil.sol
File metadata and controls
25 lines (21 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Neptune Mutual Protocol (https://neptunemutual.com)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
import "../../libraries/StoreKeyUtil.sol";
import "../../libraries/ProtoUtilV1.sol";
import "../../libraries/CoverUtilV1.sol";
import "../../libraries/StrategyLibV1.sol";
contract MockCoverUtilUser {
using ProtoUtilV1 for IStore;
using StoreKeyUtil for IStore;
using StrategyLibV1 for IStore;
using CoverUtilV1 for IStore;
IStore public s;
constructor(IStore store) {
s = store;
}
function getActiveLiquidityUnderProtection(bytes32 coverKey, bytes32 productKey) external view returns (uint256) {
uint256 precision = s.getStablecoinPrecisionInternal();
return s.getActiveLiquidityUnderProtectionInternal(coverKey, productKey, precision);
}
}