Skip to content

Commit

Permalink
simply default power reduction definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Mar 22, 2021
1 parent 83efad3 commit b54e276
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions types/staking.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package types

import (
"math/big"
)

// staking constants
const (

Expand All @@ -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 {
Expand Down

0 comments on commit b54e276

Please sign in to comment.