-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
59 lines (49 loc) · 1.85 KB
/
config.ts
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
export enum InputsSource {
APIS = 'APIS',
FILES = 'FILES',
}
export type DsSamConfig = {
inputsSource: InputsSource
inputsCacheDirPath?: string
cacheInputs?: boolean
// TODO? split into nested config sections
validatorsApiBaseUrl: string
bondsApiBaseUrl: string
tvlInfoApiBaseUrl: string
blacklistApiBaseUrl: string
snapshotsApiBaseUrl: string
rewardsEpochsCount: number
validatorsUptimeEpochsCount: number
validatorsUptimeThresholdDec: number
validatorsClientVersionSemverExpr: string
validatorsMaxEffectiveCommissionDec: number
mndeDirectedStakeShareDec: number
mndeStakeCapMultiplier: number
maxMarinadeStakeConcentrationPerCountryDec: number
maxMarinadeStakeConcentrationPerAsoDec: number
maxNetworkStakeConcentrationPerCountryDec: number
maxNetworkStakeConcentrationPerAsoDec: number
maxMarinadeTvlSharePerValidatorDec: number
debugVoteAccounts: string[]
}
export const DEFAULT_CONFIG: DsSamConfig = {
inputsSource: InputsSource.APIS,
validatorsApiBaseUrl: 'https://validators-api.marinade.finance',
bondsApiBaseUrl: 'https://validator-bonds-api.marinade.finance',
tvlInfoApiBaseUrl: 'https://api.marinade.finance',
blacklistApiBaseUrl: 'https://raw.githubusercontent.com/marinade-finance/delegation-strategy-2/master',
snapshotsApiBaseUrl: 'https://snapshots-api.marinade.finance',
rewardsEpochsCount: 10,
validatorsUptimeEpochsCount: 3,
validatorsUptimeThresholdDec: 0.8,
validatorsClientVersionSemverExpr: '>=1.18.15 || >=0.101.20013 <1.0.0',
validatorsMaxEffectiveCommissionDec: 0.07,
mndeDirectedStakeShareDec: 0,
mndeStakeCapMultiplier: 0.1,
maxMarinadeStakeConcentrationPerCountryDec: 1,
maxMarinadeStakeConcentrationPerAsoDec: 1,
maxNetworkStakeConcentrationPerCountryDec: 0.3,
maxNetworkStakeConcentrationPerAsoDec: 0.3,
maxMarinadeTvlSharePerValidatorDec: 0.02,
debugVoteAccounts: [],
}