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(price-impact): show price impact exact % #5399

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

alfetopito
Copy link
Collaborator

Summary

Tiny change to make the actual percentage in the price impact displayed when confirming it:

image
image

To Test

  1. Do a reaaaly bad trade
  2. Confirm
  • There should be another confirmation modal with the price impact % rounded

Copy link

vercel bot commented Feb 5, 2025

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

Name Status Preview Updated (UTC)
cowfi 🔄 Building (Inspect) Visit Preview Feb 6, 2025 4:58pm
explorer-dev ✅ Ready (Inspect) Visit Preview Feb 6, 2025 4:58pm
swap-dev 🔄 Building (Inspect) Visit Preview Feb 6, 2025 4:58pm
3 Skipped Deployments
Name Status Preview Updated (UTC)
cosmos ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 4:58pm
sdk-tools ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 4:58pm
widget-configurator ⬜️ Ignored (Inspect) Visit Preview Feb 6, 2025 4:58pm

Copy link
Contributor

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @alfetopito , thank you for addressing this!
As a nitpick, I'd make the percentage in bold to add more visibility for it.
in bold
Like we do here, as an example
image

@alfetopito
Copy link
Collaborator Author

Hey @alfetopito , thank you for addressing this! As a nitpick, I'd make the percentage in bold to add more visibility for it. in bold Like we do here, as an example image

Yeah, the way it's implemented there's not really an easy solution.
It'll stay like this for now 😬

@alfetopito alfetopito force-pushed the fix/show-pctg-high-price-impact branch from 3d999bb to 46f06e5 Compare February 6, 2025 16:55
@alfetopito alfetopito merged commit 448e43d into develop Feb 6, 2025
7 of 11 checks passed
@alfetopito alfetopito deleted the fix/show-pctg-high-price-impact branch February 6, 2025 16:57
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants