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

Add L1 gas fee calculation on Optimism & forks #338

Conversation

Lesigh-3100
Copy link
Collaborator

This fix adds the calculation for "L1 Gas Fee" for transactions on Optimism & Optimism forks such as Base.

This gas fee is calculated & added to the current fee calculations to generate a much more accurate value for the expected transaction cost.

Note:
Signing transactions has been moved outside the submit_transaction and submit_transaction_private functions to prevent signing the transaction twice as part of this flow.

@Lesigh-3100 Lesigh-3100 added the bug Something isn't working label Jan 30, 2024
@Lesigh-3100 Lesigh-3100 self-assigned this Jan 30, 2024
fastlane_bot/config/provider.py Outdated Show resolved Hide resolved
fastlane_bot/config/network.py Outdated Show resolved Hide resolved
fastlane_bot/helpers/txhelpers.py Outdated Show resolved Hide resolved
fastlane_bot/helpers/txhelpers.py Outdated Show resolved Hide resolved
resources/NBTest/NBTest_069_TestTxHelpers.py Outdated Show resolved Hide resolved
fastlane_bot/helpers/txhelpers.py Outdated Show resolved Hide resolved
fastlane_bot/helpers/txhelpers.py Show resolved Hide resolved
fastlane_bot/helpers/txhelpers.py Outdated Show resolved Hide resolved
fastlane_bot/helpers/txhelpers.py Outdated Show resolved Hide resolved
fastlane_bot/helpers/txhelpers.py Outdated Show resolved Hide resolved
@barakman barakman self-requested a review January 31, 2024 17:21
@barakman barakman self-requested a review January 31, 2024 20:52
@mikewcasale mikewcasale merged commit 64e46e8 into main Feb 1, 2024
3 checks passed
@mikewcasale mikewcasale deleted the 336-transactions-on-base-and-other-optimism-forks-should-account-for-l1-gas-fee branch February 1, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transactions on Base (and other Optimism forks) should account for L1 gas fee
3 participants