-
Notifications
You must be signed in to change notification settings - Fork 672
/
genesis_mainnet.go
49 lines (43 loc) · 1.47 KB
/
genesis_mainnet.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (C) 2019-2024, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package genesis
import (
"time"
_ "embed"
"github.com/ava-labs/avalanchego/utils/units"
"github.com/ava-labs/avalanchego/vms/platformvm/reward"
"github.com/ava-labs/avalanchego/vms/platformvm/txs/fee"
)
var (
//go:embed genesis_mainnet.json
mainnetGenesisConfigJSON []byte
// MainnetParams are the params used for mainnet
MainnetParams = Params{
StaticConfig: fee.StaticConfig{
TxFee: units.MilliAvax,
CreateAssetTxFee: 10 * units.MilliAvax,
CreateSubnetTxFee: 1 * units.Avax,
TransformSubnetTxFee: 10 * units.Avax,
CreateBlockchainTxFee: 1 * units.Avax,
AddPrimaryNetworkValidatorFee: 0,
AddPrimaryNetworkDelegatorFee: 0,
AddSubnetValidatorFee: units.MilliAvax,
AddSubnetDelegatorFee: units.MilliAvax,
},
StakingConfig: StakingConfig{
UptimeRequirement: .8, // 80%
MinValidatorStake: 2 * units.KiloAvax,
MaxValidatorStake: 3 * units.MegaAvax,
MinDelegatorStake: 25 * units.Avax,
MinDelegationFee: 20000, // 2%
MinStakeDuration: 2 * 7 * 24 * time.Hour,
MaxStakeDuration: 365 * 24 * time.Hour,
RewardConfig: reward.Config{
MaxConsumptionRate: .12 * reward.PercentDenominator,
MinConsumptionRate: .10 * reward.PercentDenominator,
MintingPeriod: 365 * 24 * time.Hour,
SupplyCap: 720 * units.MegaAvax,
},
},
}
)