simply default power reduction definition

This commit is contained in:
Sunny Aggarwal 2021-03-21 20:29:39 -04:00
parent 83efad3c30
commit b54e2763db
1 changed files with 1 additions and 5 deletions

View File

@ -1,9 +1,5 @@
package types
import (
"math/big"
)
// staking constants
const (
@ -23,7 +19,7 @@ const (
)
// DefaultPowerReduction is the default amount of staking tokens required for 1 unit of consensus-engine power
var DefaultPowerReduction = NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(6), nil))
var DefaultPowerReduction = NewIntFromUint64(1000000)
// TokensToConsensusPower - convert input tokens to potential consensus-engine power
func TokensToConsensusPower(tokens Int, powerReduction Int) int64 {