Skip to content
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: display impact before severity #5678

Merged
merged 1 commit into from
Dec 13, 2022
Merged

fix: display impact before severity #5678

merged 1 commit into from
Dec 13, 2022

Conversation

zzmp
Copy link
Contributor

@zzmp zzmp commented Dec 13, 2022

If the price impact is too high, swapping is disabled (unless in expert mode). Currently, however, the button still displays "Swap Anyway".

This fixes that, so that if price impact is too high the disabled button will show "Price Impact Too High" and not suggest that swapping is still possible.

To test: try to swap ETH for 1 Adventure Gold (LOOT)

@zzmp zzmp requested a review from cartcrom December 13, 2022 21:20
@vercel
Copy link

vercel bot commented Dec 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
interface ✅ Ready (Inspect) Visit Preview Dec 13, 2022 at 9:26PM (UTC)

@zzmp zzmp requested review from yannie-yip and removed request for cartcrom December 13, 2022 21:21
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 27fd212
Status: ✅  Deploy successful!
Preview URL: https://15d36d41.interface-y3o.pages.dev
Branch Preview URL: https://fix-validity.interface-y3o.pages.dev

View logs

@zzmp zzmp merged commit fd12a0d into main Dec 13, 2022
@zzmp zzmp deleted the fix-validity branch December 13, 2022 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants