-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathMockCxToken.sol
More file actions
34 lines (28 loc) · 941 Bytes
/
Copy pathMockCxToken.sol
File metadata and controls
34 lines (28 loc) · 941 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
26
27
28
29
30
31
32
33
34
// Neptune Mutual Protocol (https://neptunemutual.com)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract MockCxToken is ERC20 {
constructor() ERC20("Test", "Test") {
super._mint(msg.sender, 1 ether);
}
function burn(uint256 amount) external {
super._burn(msg.sender, amount);
}
function expiresOn() external view returns (uint256) {
return block.timestamp + 30 days; // solhint-disable-line
}
function getClaimablePolicyOf(address) external pure returns (uint256) {
return 1000 ether;
}
// slither-disable-next-line naming-convention
function COVER_KEY() external pure returns (bytes32) {
// solhint-disable-previous-line
return "test";
}
// slither-disable-next-line naming-convention
function PRODUCT_KEY() external pure returns (bytes32) {
// solhint-disable-previous-line
return "";
}
}