Skip to content

Cache quote fee#70

Merged
jonathunne merged 8 commits into
tetherto:developfrom
quocle108:cache-quote-fee
Mar 30, 2026
Merged

Cache quote fee#70
jonathunne merged 8 commits into
tetherto:developfrom
quocle108:cache-quote-fee

Conversation

@quocle108
Copy link
Copy Markdown
Member

@quocle108 quocle108 commented Mar 23, 2026

Description

  • Cache quote fee and reuse it in transfer()/sendTransaction() to reduce number of calls to paymaster provider
  • add FEE_TOLERANCE_COEFFICIENT into the returned fee

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Copy link
Copy Markdown
Contributor

@jonathunne jonathunne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks great, just a few comments. Also, we'll need to manually update the type files after making these changes (they would be missing _lastQuote and _getValidCachedFee at least)

Comment thread src/wallet-account-evm-erc-4337.js
Comment thread src/wallet-account-read-only-evm-erc-4337.js Outdated
Comment thread src/wallet-account-read-only-evm-erc-4337.js Outdated
Comment thread package.json Outdated
quocle108 and others added 2 commits March 25, 2026 08:06
Co-authored-by: rickalon <30550704+AlonzoRicardo@users.noreply.github.com>
@jonathunne jonathunne merged commit 484f680 into tetherto:develop Mar 30, 2026
1 check passed
@jonathunne jonathunne mentioned this pull request May 6, 2026
3 tasks
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.

3 participants