-
Notifications
You must be signed in to change notification settings - Fork 346
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
Add Dynamic Fee support for Moonbeam #2166
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notlesh
added
B5-clientnoteworthy
Changes should be mentioned in any downstream projects' release notes
B7-runtimenoteworthy
Changes should be noted in any runtime-upgrade release notes
D9-needsaudit👮
PR contains changes to fund-managing logic that should be properly reviewed and externally audited
breaking
Needs to be mentioned in breaking changes
labels
Mar 16, 2023
notlesh
commented
Mar 16, 2023
librelois
approved these changes
Apr 3, 2023
tgmichel
reviewed
Apr 11, 2023
tgmichel
approved these changes
Apr 11, 2023
notlesh
commented
Apr 11, 2023
Comment on lines
+1256
to
+1262
assert_eq!( | ||
TransactionPaymentAsGasPrice::min_gas_price(), | ||
( | ||
125_000_000_000u128.into(), | ||
Weight::from_ref_time(25_000_000u64) | ||
) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tgmichel this should address your earlier comment. It is indeed 125 gwei
, but this should be in line with other runtimes when you take the SUPPLY_FACTOR
into account.
Does 125 gwei
still seem unreasonable?
girazoki
approved these changes
Apr 12, 2023
notlesh
added
D1-audited👍
PR contains changes to fund-managing logic that has been properly reviewed and externally audited
and removed
D9-needsaudit👮
PR contains changes to fund-managing logic that should be properly reviewed and externally audited
labels
Apr 26, 2023
imstar15
pushed a commit
to AvaProtocol/moonbeam
that referenced
this pull request
May 16, 2023
* Initial mods for dynamic fee on moonbeam * Update tests to use increase fee * Bump gas price in test * Comment out failing test (temporarily) * fmt * Some actually VALID_ETH_TX bytes! * Remove unused import * Add multiplier tests * Enabled dynamic fees smoketest for MB --------- Co-authored-by: timbrinded <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A0-pleasereview
Pull request needs code review.
B5-clientnoteworthy
Changes should be mentioned in any downstream projects' release notes
B7-runtimenoteworthy
Changes should be noted in any runtime-upgrade release notes
breaking
Needs to be mentioned in breaking changes
D1-audited👍
PR contains changes to fund-managing logic that has been properly reviewed and externally audited
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does it do?
The final quest in the epic journey to bring dynamic fees to Moonbeam. ⚔️ 🐉
Previously: #2078 (Moonriver) and #1765 (Moonbase). See the latter for more context on the R&D that went into this.
Briefly: this uses
pallet-transaction-payment
's fee multiplier as a basis for anEIP-1559 gas price
, aligning both Substrate-based and Ethereum-based fees to use a similar congestion-based dynamic fee.moonbeam
runtime only100 gwei
gas price replaced with dynamic fee125 gwei
moonbase
andmoonriver
)TODO: