Skip to content

Commit

Permalink
Fix upgrades_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
arhamchordia committed Aug 30, 2024
1 parent c15cc9d commit e59297b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/upgrades/v3/upgrades_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,18 @@ func (s *UpgradeTestSuite) TestUpgrade() {
feemarketParams, err := keepers.FeeMarketKeeper.GetParams(ctx)
s.Require().NoError(err, "Error getting feemarket params after upgrade")
expectedFeeMarketParams := feemarkettypes.DefaultParams()
expectedFeeMarketParams.MinBaseGasPrice = math.LegacyMustNewDecFromStr("0.10000000000000000")
expectedFeeMarketParams.MaxBlockUtilization = uint64(120000000)
expectedFeeMarketParams.FeeDenom = "uqsr"
expectedFeeMarketParams.Alpha = math.LegacyMustNewDecFromStr("0.003000000000000000")
expectedFeeMarketParams.Beta = math.LegacyMustNewDecFromStr("0.980000000000000000")
expectedFeeMarketParams.Delta = math.LegacyMustNewDecFromStr("0.001500000000000000")
expectedFeeMarketParams.DistributeFees = true
expectedFeeMarketParams.Enabled = true
expectedFeeMarketParams.FeeDenom = "uqsr"
expectedFeeMarketParams.Gamma = math.LegacyMustNewDecFromStr("0.008000000000000000")
expectedFeeMarketParams.MaxBlockUtilization = uint64(120000000)
expectedFeeMarketParams.MaxLearningRate = math.LegacyMustNewDecFromStr("0.125000000000000000")
expectedFeeMarketParams.MinBaseGasPrice = math.LegacyMustNewDecFromStr("0.100000000000000000")
expectedFeeMarketParams.MinLearningRate = math.LegacyMustNewDecFromStr("0.075000000000000000")
expectedFeeMarketParams.Window = uint64(7)
s.Require().Equal(expectedFeeMarketParams, feemarketParams, "Fee market params do not match expected values after upgrade")
}

Expand Down

0 comments on commit e59297b

Please sign in to comment.