-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.go
25 lines (19 loc) · 1014 Bytes
/
constants.go
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
package constants
const (
OneSmesh = 1000000000 // 1e9 (1bn) smidge per smesh
// Vaults and vesting
TotalVaulted = OneSmesh * 150000000 // 150mn smesh
CliffRatio = 0 // pct vest at cliff
OneEpoch = 4032 // mainnet epochs are two weeks long
OneYear = 105120 // 365 days, in 5-minute intervals
VestStart = OneYear // one year, in layers
VestEnd = 4 * OneYear // four years post-genesis, three years post-vesting start
VestLayers = VestEnd - VestStart // three years, in layers (exclusive of start layer, inclusive of end layer)
VestedAtCliff = uint64(CliffRatio * TotalVaulted)
// VestPerLayer is rounded down to the nearest int. We make up for this rounding in the code.
VestPerLayer = (TotalVaulted - VestedAtCliff) / VestLayers
// Total issuance figures
TenYearTarget = OneSmesh * 600000000
TotalIssuance = OneSmesh * 2400000000 // 2.4bn smesh
TotalSubsidy = TotalIssuance - TotalVaulted
)