/
base.go
35 lines (29 loc) · 1.21 KB
/
base.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
26
27
28
29
30
31
32
33
34
35
package evidence
type Options struct {
// votes count required
MinVotesRequired int64 `json:"minVotesRequired"`
// votes boundaries H : H - VotesBlockDiff
BlockVotesDiff int64 `json:"blockVotesDiff"`
// penalty 1st iteration
PenaltyBasePercentage int64 `json:"penaltyBasePercentage"`
// penalty divisability factor
PenaltyBaseDecimals int64 `json:"penaltyBaseDecimals"`
// penalty cut for bounty (as example 13.43 %, stored as 1343)
PenaltyBountyPercentage int64 `json:"penaltyBountyPercentage"`
// penalty cut decimals
PenaltyBountyDecimals int64 `json:"penaltyBountyDecimals"`
// penalty cut for burn
PenaltyBurnPercentage int64 `json:"penaltyBurnPercentage"`
// penalty cut decimals
PenaltyBurnDecimals int64 `json:"penaltyBurnDecimals"`
// time to unfreeze validator (number of days) - for 2 scenario
ValidatorReleaseTime int64 `json:"validatorReleaseTime"`
// required validator votes
ValidatorVotePercentage int64 `json:"validatorVotePercentage"`
// required validator decimals
ValidatorVoteDecimals int64 `json:"validatorVoteDecimals"`
// allegation persent
AllegationPercentage int64 `json:"allegationPercentage"`
// allegation cut decimals
AllegationDecimals int64 `json:"allegationDecimals"`
}