From 4921651a1d9e86afc57b05ea17dd83d479aadf2d Mon Sep 17 00:00:00 2001 From: hoanguyenkh Date: Thu, 5 Jan 2023 16:38:36 +0700 Subject: [PATCH] refactor: add default DefaultMinGasPrice, DefaultMinGasMultiplier --- app/app.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index 9d2e2c4..1a5d2c4 100644 --- a/app/app.go +++ b/app/app.go @@ -3,16 +3,17 @@ package app import ( "context" "encoding/json" + "io" + "net/http" + "os" + "path/filepath" + "github.com/AstraProtocol/astra/v2/x/feeburn" feeBurnKeeper "github.com/AstraProtocol/astra/v2/x/feeburn/keeper" feeBurnTypes "github.com/AstraProtocol/astra/v2/x/feeburn/types" "github.com/AstraProtocol/astra/v2/x/mint" mintkeeper "github.com/AstraProtocol/astra/v2/x/mint/keeper" minttypes "github.com/AstraProtocol/astra/v2/x/mint/types" - "io" - "net/http" - "os" - "path/filepath" "github.com/gorilla/mux" "github.com/rakyll/statik/fs" @@ -131,6 +132,8 @@ func init() { } DefaultNodeHome = filepath.Join(userHomeDir, ".astrad") + feemarkettypes.DefaultMinGasPrice = sdk.NewDec(10_000_000_000) + feemarkettypes.DefaultMinGasMultiplier = sdk.NewDecWithPrec(5, 1) // manually update the power reduction by replacing micro (u) -> atto (a) astra sdk.DefaultPowerReduction = ethermint.PowerReduction