-
Notifications
You must be signed in to change notification settings - Fork 361
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
Fee Alignment - Shibuya/local #1025
Conversation
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.
Great tests!
I'm not very clear about how adjustment factor will be handled, as I understand it be updated every block based on block fullness. I couldn't find any TODOs for that, will there be a new pallet for it or it'll be part of this pallet itself?
There's no TODO since this is already implemented & live on all of our networks. One of the remaining TODOs is related to this part though. |
I missed that, I assumed this 'adjustment factor' is something specific to this pallet. Now it make sense. |
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.
LGTM. Awesome docs and test coverage!
/bench shibuya-dev pallet_dynamic_evm_base_fee |
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/6327663494. |
Benchmark job failed. |
/bench shibuya-dev pallet_dynamic_evm_base_fee |
Benchmarks job is scheduled at https://github.com/AstarNetwork/Astar/actions/runs/6335948645. |
Benchmarks have been finished. |
Minimum allowed line rate is |
Pull Request Summary
This PR introduces rent fee reduction and fee alignment to
local
andShibuya
networks.Pallet
DynamicEvmBaseFee
handles calculation and adjustment ofbase fee per gas
parameter.It's unlike EIP-1559, and instead uses a customized approach for
Astar
.The core idea is to keep native fees & EVM fees aligned as much as possible.
For a detailed & expansive overview, please refer to Astar Forum post HERE.
Pallet rustdoc contains some more detailed description of the implementation approach.
Shibuya Integration
Local Integration
Check list
OnRuntimeUpgrade
logic to modify DB adjustable paramslocal
runtime