-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat: warn users about metamask transactions #5362
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
const priceImpactIsHighEnough = +priceImpact.toFixed(2) > PRICE_IMPACT_LIMIT | ||
const buyAmountIsBigEnough = +(buyingFiatAmount?.toExact() || 0) > AMOUNT_LIMIT[chainId] | ||
|
||
const shouldSuggestTwap = !isSellNative && priceImpactIsHighEnough && buyAmountIsBigEnough |
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 small enhancement: do not show the twap suggestion banner when selling ETH
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.
Working great!
Edit
Updated message:
Summary
Fixes: https://docs.google.com/document/d/1q4R99t3BQlX_n7cEZlG0PzOvepg6kxsyatm2VxGANG4/edit?tab=t.0#heading=h.wjw6vqd8yw40
The banner should be displayed only when
To Test