Keep USD fee estimates available on rate-limited RPCs #13
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/plainwallet!13
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/usd-fee-rate-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Approval reviews showed USD unavailable next to the network fee on Base. There were two causes:
mainnet.base.orglimitseth_callper IP (-32016 "over rate limit", sent inside an HTTP 200). Opening a review screen, plus the dapp's own reads, uses up that quota. The three oracle reads are now one Multicall3 call, the same approach asbalances()inlib/chain.ts. It retries after 1 s and 2 s, all within the existing 5 s timeout, and each attempt aborts its own pending requests. The chain-ID check and all quote validation are unchanged.Display only. This doesn't touch transaction preparation, signing or approval.
Checks
npm test,tsc --noEmitandnpm run buildpass.test-fees.jshas new checks for the re-read after expiry and for rate-limited reads being retried. The retry check fails without the fix. The mock now answers Multicall3aggregate3.eth_calls, the old code was unavailable in 1 of 3 runs and the new code worked in 3 of 3. The real fee row showed≈ $0.01123and was still showing it 36 s later. Also checked in Chromium with the built extension.🤖 Generated with Claude Code