Update maxRetries to 2 and preflightCommitment to "processed" for higher success rate creating Solana swap transactions
Fix loading state when creating Solana swap transactions (loading state only shown when fetching price quote currently)
Fix possible race condition when sell amount changes after request for prior value sent. Sell amount changes are debounced before sent, but now we ignore response to price quote if the user changes the swap amount.
This pull request fixes #8616
Submitter Checklist:
[x] Unit Tests are updated to cover new or changed functionality
[x] User-facing strings use NSLocalizableString()
[x] New or updated UI has been tested across:
[x] Light & dark mode
[x] Different size classes (iPhone, landscape, iPad)
[x] Different dynamic type sizes
Test Plan:
Try updating sell amount a few times; should see correct expected value in buy amount (race condition).
Create Solana Swap transaction, verify loading state shown. Should see higher success rate creating Solana transactions with v4 API.
Create Ethereum Swap transaction, verify loading state is still shown and ethereum swaps working as expected
Summary of Changes
maxRetries
to 2 andpreflightCommitment
to"processed"
for higher success rate creating Solana swap transactionsThis pull request fixes #8616
Submitter Checklist:
NSLocalizableString()
Test Plan:
Screenshots:
Reviewer Checklist:
QA/(Yes|No)
bug
/enhancement