Skip to content

Commit

Permalink
chore: reverted power reduction to be 1 (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix authored Dec 19, 2023
1 parent a49d54c commit d548bc8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package app
import (
"encoding/json"
"io"
"math/big"
"net/http"
"os"
"path/filepath"
Expand All @@ -29,7 +28,6 @@ import (
simapp "github.com/cosmos/cosmos-sdk/simapp"
"github.com/cosmos/cosmos-sdk/store/streaming"

sdkmath "cosmossdk.io/math"
storetypes "github.com/cosmos/cosmos-sdk/store/types"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -139,6 +137,7 @@ import (
"github.com/evmos/ethermint/ethereum/eip712"

"github.com/evmos/ethermint/server/flags"
ethermint "github.com/evmos/ethermint/types"
"github.com/evmos/ethermint/x/evm"
evmkeeper "github.com/evmos/ethermint/x/evm/keeper"
evmtypes "github.com/evmos/ethermint/x/evm/types"
Expand Down Expand Up @@ -278,11 +277,7 @@ func init() {

DefaultNodeHome = filepath.Join(userHomeDir, "."+appparams.Name)

var BaseDenomUnit int64 = 18
originalPoweReduction := new(big.Int).Exp(big.NewInt(10), big.NewInt(BaseDenomUnit), nil)

var TokensToStake int64 = 100000 //100K DYM minimal stake
sdk.DefaultPowerReduction = sdkmath.NewIntFromBigInt(originalPoweReduction.Mul(originalPoweReduction, big.NewInt(TokensToStake)))
sdk.DefaultPowerReduction = ethermint.PowerReduction
}

// App extends an ABCI application, but with most of its parameters exported.
Expand Down

0 comments on commit d548bc8

Please sign in to comment.