Skip to content

fix: prevent division by zero in GasAccounting and BaseGasCalculator#520

Open
huahuayu wants to merge 1 commit into
FastLane-Labs:mainfrom
huahuayu:fix/zero-gasprice-reconcile
Open

fix: prevent division by zero in GasAccounting and BaseGasCalculator#520
huahuayu wants to merge 1 commit into
FastLane-Labs:mainfrom
huahuayu:fix/zero-gasprice-reconcile

Conversation

@huahuayu

Copy link
Copy Markdown

This PR fixes potential division by zero errors in and that could occur on chains or in environments where is 0. While Atlas is primarily used in MEV contexts where gas prices are typically non-zero, this change improves robustness and prevents unexpected reverts in zero-gas-price scenarios (e.g., local testing or specific L2 configurations).

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.

1 participant