aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/fees.go
blob: c0a5d2d8805b28d81fbf4501433071158d7135da (plain) (blame)
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
package ethchain

import (
    "math/big"
)

var TxFeeRat *big.Int = big.NewInt(100000000000000)

var TxFee *big.Int = big.NewInt(100)
var StepFee *big.Int = big.NewInt(1)
var StoreFee *big.Int = big.NewInt(5)
var DataFee *big.Int = big.NewInt(20)
var ExtroFee *big.Int = big.NewInt(40)
var CryptoFee *big.Int = big.NewInt(20)
var ContractFee *big.Int = big.NewInt(100)

var BlockReward *big.Int = big.NewInt(1.5e+18)
var UncleReward *big.Int = big.NewInt(1.125e+18)
var UncleInclusionReward *big.Int = big.NewInt(1.875e+17)

var Period1Reward *big.Int = new(big.Int)
var Period2Reward *big.Int = new(big.Int)
var Period3Reward *big.Int = new(big.Int)
var Period4Reward *big.Int = new(big.Int)

func InitFees() {
    StepFee.Mul(StepFee, TxFeeRat)
    StoreFee.Mul(StoreFee, TxFeeRat)
    DataFee.Mul(DataFee, TxFeeRat)
    ExtroFee.Mul(ExtroFee, TxFeeRat)
    CryptoFee.Mul(CryptoFee, TxFeeRat)
    ContractFee.Mul(ContractFee, TxFeeRat)
}