Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jul 27, 2023

Conversation

arturgontijo
Copy link
Contributor

@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.

frame/base-fee/src/lib.rs Outdated Show resolved Hide resolved
@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