-
Notifications
You must be signed in to change notification settings - Fork 101
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
fix(twap): display a warning when fbh was changed after twap order #5202
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
LGTM in terms of functionality. Waiting for UI changes :)
* feat: style TWAP warning banner * feat: fix typo and change orientation of banner
Merged #5204 PR from @fairlighteth with design changes in this PR |
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.
Soft approve. Really great addition. Thanks a lot for handling this 🙏
const txHash = await setupFallbackHandler() | ||
|
||
if (txHash) { | ||
setPendingTxHash(txHash) |
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.
A re-render of this would loose the posted TX, right?
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.
Nice catch!
Fixed it: 35f1802
Thanks!
LGTM |
Summary
Since fb handler might be changed in a random moment, we should handle the case.
We recently added the fb handler verification cache invalidation - #5200.
In this PR I added a banner which is displayed when fb handler is not installed and there are open TWAP orders.
I know, the banner is ugly, @fairlighteth please help 🙏
To Test
If you need to reset a fn handler, just create a transaction via transaction builder:
0xf08a032300000000000000000000000075cf11467937ce3f2f357ce24ffc3dbf8fd5c226
And don't forget to remove
fallbackHandlerVerification
localStorage key after that