Skip to content

Commit

Permalink
refactor: add default DefaultMinGasPrice, DefaultMinGasMultiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanguyenkh committed Jan 5, 2023
1 parent 03cece2 commit 4921651
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4921651

Please sign in to comment.