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

feat(experimental): Add an env var to limit the max gas price for resends #800

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Dec 9, 2024

PR-Codex overview

This PR introduces a new utility object BigIntMath for mathematical operations on bigint values, adds experimental environment variables for gas price settings, and updates the _updateGasFees function to utilize these new utilities. Additionally, it includes tests for the new BigIntMath functions.

Detailed summary

  • Added BigIntMath with min and max methods for bigint operations in src/utils/math.ts.
  • Introduced EXPERIMENTAL__MAX_GAS_PRICE_WEI in src/utils/env.ts.
  • Updated _updateGasFees in src/worker/tasks/sendTransactionWorker.ts to use BigIntMath.
  • Added tests for BigIntMath functions in src/tests/math.test.ts.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@arcoraven arcoraven merged commit 85b2aff into main Dec 9, 2024
4 checks passed
@arcoraven arcoraven deleted the ph/maxGasPriceWei branch December 9, 2024 14:01
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