Skip to content

[#1107] Using DefaultBaseFeePerGas * T::Threshold::ideal() as base_fee floor value.#1115

Merged
sorpaas merged 4 commits intopolkadot-evm:masterfrom
arturgontijo:gas-price-1107
Jul 27, 2023
Merged

[#1107] Using DefaultBaseFeePerGas * T::Threshold::ideal() as base_fee floor value.#1115
sorpaas merged 4 commits intopolkadot-evm:masterfrom
arturgontijo:gas-price-1107

Conversation

@arturgontijo
Copy link
Copy Markdown
Collaborator

@arturgontijo arturgontijo commented Jul 19, 2023

An idea to solve #1107

Changed the logic to set a lowest base_fee to DefaultBaseFeePerGas * T::Threshold::ideal() as it makes sense to start a chain using the DefaultBaseFeePerGas and decrease it till a floor value.

If that works, I can go ahead an fix/update the tests.

@arturgontijo arturgontijo requested a review from sorpaas as a code owner July 19, 2023 17:13
Comment thread frame/base-fee/src/lib.rs Outdated
@arturgontijo arturgontijo changed the title [#1107] Using DefaultBaseFeePerGas as base_fee floor value. [#1107] Using DefaultBaseFeePerGas * T::Threshold::ideal() as base_fee floor value. Jul 26, 2023
@sorpaas sorpaas merged commit 64f9af8 into polkadot-evm:master Jul 27, 2023
@arturgontijo arturgontijo deleted the gas-price-1107 branch July 27, 2023 10:20
girazoki pushed a commit to moondance-labs/frontier that referenced this pull request Aug 23, 2023
…()` as `base_fee` floor value. (polkadot-evm#1115)

* [polkadot-evm#1107] Using DefaultBaseFeePerGas as base_fee floor value.

* [polkadot-evm#1107] Fix tests + if-else

* [polkadot-evm#1107] lowest_base_fee = default_base_fee * Threshold::ideal()

* [polkadot-evm#1107] fmt
noandrea pushed a commit to moonbeam-foundation/frontier that referenced this pull request Aug 28, 2023
…()` as `base_fee` floor value. (polkadot-evm#1115)

* [polkadot-evm#1107] Using DefaultBaseFeePerGas as base_fee floor value.

* [polkadot-evm#1107] Fix tests + if-else

* [polkadot-evm#1107] lowest_base_fee = default_base_fee * Threshold::ideal()

* [polkadot-evm#1107] fmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants