Skip to content

Commit 04ca170

Browse files
fix: mempool-1559 min base fee to match consensus min fee (#9461) (#9462)
* fix min base fee * update changelog * update comment (cherry picked from commit 7f8f6d0) Co-authored-by: Supanat <[email protected]>
1 parent 01732f1 commit 04ca170

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5757
* [#9455](https://github.com/osmosis-labs/osmosis/pull/9455) chore: bump cosmos-sdk to v0.50.14
5858
* [#9456](https://github.com/osmosis-labs/osmosis/pull/9456) feat: transfer top of block auction funds to community pool
5959
* [#9457](https://github.com/osmosis-labs/osmosis/pull/9457) chore: bump submodules
60+
* [#9460](https://github.com/osmosis-labs/osmosis/pull/9460) fix: mempool-1559 min base fee to match consensus min fee
6061

6162
## v29.0.2
6263

x/txfees/keeper/mempool-1559/code.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"cosmossdk.io/log"
1212

1313
osmomath "github.com/osmosis-labs/osmosis/osmomath"
14+
"github.com/osmosis-labs/osmosis/v30/x/txfees/types"
1415
)
1516

1617
/*
@@ -31,7 +32,7 @@ import (
3132
3233
Global variables stored in memory:
3334
- DefaultBaseFee: Default base fee, initialized to 0.005.
34-
- MinBaseFee: Minimum base fee, initialized to 0.0025.
35+
- MinBaseFee: Minimum base fee, initialized to 0.01.
3536
- MaxBaseFee: Maximum base fee, initialized to 5.
3637
- MaxBlockChangeRate: The maximum block change rate, initialized to 1/10.
3738
@@ -46,7 +47,7 @@ var (
4647
// We expect wallet multiplier * DefaultBaseFee < MinBaseFee * RecheckFeeConstant
4748
// conservatively assume a wallet multiplier of at least 7%.
4849
DefaultBaseFee = osmomath.MustNewDecFromStr("0.0060")
49-
MinBaseFee = osmomath.MustNewDecFromStr("0.0025")
50+
MinBaseFee = types.ConsensusMinFee
5051
MaxBaseFee = osmomath.MustNewDecFromStr("5")
5152
ResetInterval = int64(6000)
5253

0 commit comments

Comments
 (0)