-
Notifications
You must be signed in to change notification settings - Fork 3
/
const.go
28 lines (24 loc) · 892 Bytes
/
const.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
package executor
import (
"math/big"
"time"
)
const (
DefaultGasPrice = 20000000000 // 20 GWei
FallBehindThreshold = 5
SleepSecondForUpdateClient = 10
DataSeedDenyServiceThreshold = 60
RPCTimeout = 3 * time.Second
RelayerBytesLength = 48
UpdateCachedValidatorsInterval = 1 * time.Minute
ClaimRewardInterval = 1 * time.Minute
MaxTxSizeForFixGasLimit = 32768 // 32kb
EstimatedTxExtraMetaSize = 1024 // in bytes
GnfdGasPrice = int64(5000000000)
GasLimitRatio = int64(10)
)
var (
BSCBalanceThreshold = big.NewInt(1) // when relayer is lower than 1BNB, it should try to claim rewards
BNBDecimal = big.NewInt(1000000000000000000)
BSCRewardThreshold = big.NewInt(100000000000000000) // if reward is lower than 0.1 BNB, it will not be claimed.
)