-
Couldn't load subscription status.
- Fork 406
enhance swap quote functionality with error handling and auto refresh #3803
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some notes! Thanks for contributing these changes!
|
I have taken the feedback into account and refactored the PR. Does this look better? |
|
The updated PR still does auto-refreshes but they're also being done on the frontend side, am I reading this right? Probably should stick to one or the other. |
|
Please take a look once more. I have removed the refresh on the FE |
| priceImpact={quote?.priceDetails?.priceImpact} | ||
| isPriceDetailsLoading={isLoadingPriceDetails} | ||
| showPriceDetails | ||
| // FIXME: Merge master asset list with account balances. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this no longer relevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. its been fixed
| buyAsset, | ||
| gasPrice: | ||
| // Let's use the gas price from 0x API for Optimism | ||
| // to avoid problems with gas price on Optimism Bedrock. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels relevant still.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ill add it back in.
5b7ec01 to
6590482
Compare
6590482 to
a58243f
Compare
|
All done now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be auto refreshing quotes anymore?
yes. we removed the auto refresh from the frontend so its being handled on the backend. |
Okay I see that the front end code for auto refresh was removed but I don't see anything in the backend handling that? |
71ea8e6 to
52a3eec
Compare
a1e1bd8 to
9736b34
Compare
@hyphenized @Shadowfiend |
|
@hyphenized @Shadowfiend bumping this up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One stylistic note, otherwise need to test this but looks good to me.
f8812ac to
0365a1c
Compare
|
all done! |
Latest build: extension-builds-3803 (as of Thu, 10 Apr 2025 12:03:33 GMT).