-
Notifications
You must be signed in to change notification settings - Fork 46
/
FourYearVestingStorage.sol
71 lines (52 loc) · 2.25 KB
/
FourYearVestingStorage.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
pragma solidity ^0.5.17;
import "../../../openzeppelin/Ownable.sol";
import "../../../interfaces/IERC20.sol";
import "../../Staking/interfaces/IStaking.sol";
import "../../IFeeSharingCollector.sol";
/**
* @title Four Year Vesting Storage Contract.
*
* @notice This contract is just the storage required for four year vesting.
* It is parent of FourYearVestingLogic and FourYearVesting.
*
* @dev Use Ownable as a parent to align storage structure for Logic and Proxy contracts.
* */
contract FourYearVestingStorage is Ownable {
/// @notice The SOV token contract.
IERC20 public SOV;
/// @notice The staking contract address.
IStaking public staking;
/// @notice The owner of the vested tokens.
address public tokenOwner;
/// @notice Fee sharing Proxy.
IFeeSharingCollector public feeSharingCollector;
// Used lower case for cliff and duration to maintain consistency with normal vesting
/// @notice The cliff. After this time period the tokens begin to unlock.
uint256 public constant cliff = 4 weeks;
/// @notice The duration. After this period all tokens will have been unlocked.
uint256 public constant duration = 156 weeks;
/// @notice The start date of the vesting.
uint256 public startDate;
/// @notice The end date of the vesting.
uint256 public endDate;
/// @notice Constant used for computing the vesting dates.
uint256 public constant FOUR_WEEKS = 4 weeks;
/// @notice Maximum interval to stake tokens at one go
uint256 public maxInterval;
/// @notice End of previous staking schedule.
uint256 public lastStakingSchedule;
/// @notice Amount of shares left to be staked.
uint256 public remainingStakeAmount;
/// @notice Durations left.
uint256 public durationLeft;
/// @notice Cliffs added.
uint256 public cliffAdded;
/// @notice Address of new token owner.
address public newTokenOwner;
/// @notice Address of new implementation.
address public newImplementation;
/// @notice Duration(from start) till the time unlocked tokens are extended(for 3 years)
uint256 public extendDurationFor;
/// @dev Please add new state variables below this line. Mark them internal and
/// add a getter function while upgrading the contracts.
}