-
Notifications
You must be signed in to change notification settings - Fork 35
/
IUnstakable.sol
39 lines (34 loc) · 1.24 KB
/
IUnstakable.sol
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
35
36
37
38
39
// Neptune Mutual Protocol (https://neptunemutual.com)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
import "./IStore.sol";
interface IUnstakable {
struct UnstakeInfoType {
uint256 totalStakeInWinningCamp;
uint256 totalStakeInLosingCamp;
uint256 myStakeInWinningCamp;
uint256 toBurn;
uint256 toReporter;
uint256 myReward;
uint256 unstaken;
}
event Unstaken(bytes32 indexed coverKey, bytes32 indexed productKey, address indexed caller, uint256 originalStake, uint256 reward);
event ReporterRewardDistributed(bytes32 indexed coverKey, bytes32 indexed productKey, address caller, address indexed reporter, uint256 originalReward, uint256 reporterReward);
event GovernanceBurned(bytes32 indexed coverKey, bytes32 indexed productKey, address caller, address indexed burner, uint256 originalReward, uint256 burnedAmount);
function unstake(
bytes32 coverKey,
bytes32 productKey,
uint256 incidentDate
) external;
function unstakeWithClaim(
bytes32 coverKey,
bytes32 productKey,
uint256 incidentDate
) external;
function getUnstakeInfoFor(
address account,
bytes32 coverKey,
bytes32 productKey,
uint256 incidentDate
) external view returns (UnstakeInfoType memory);
}