Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

fix(percentage-display): improve huge surplus display #549

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

alfetopito
Copy link
Collaborator

@alfetopito alfetopito commented Jul 13, 2023

Update

On top of that (see below), when surplus percentage > 1000, show the surplus amount instead of percentage

image

Summary

Make huuuge surplus percentages a bit better

From
image

To
image

To Test

  1. Check this order https://explorer.cow.fi/gc/orders/0x46ef40527001b290757c1e55260f806476ed8561852cdcb93122020901d4018cb93bdd291874d637abed0d7b86e31719031b553364adcd5c?tab=overview and the orders for this address

@alfetopito alfetopito self-assigned this Jul 13, 2023
@vercel
Copy link

vercel bot commented Jul 13, 2023

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

Name Status Preview Comments Updated (UTC)
explorer-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2023 1:54pm

@elena-zh
Copy link

Looks better, but still does not fixes this (#462):
image

Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

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

That's a bit better :)
Maybe we should do sth else when they place market orders, cause we still will have the issue if they place a 1 wei one

@alfetopito
Copy link
Collaborator Author

Looks better, but still does not fixes this (#462): image

Yes, exactly the same use case.

Hoping @fairlighteth can do something about it 🤞

Copy link

@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 , great!
Small question: is this OK to show an absolute value in green?
green

@alfetopito
Copy link
Collaborator Author

Hey @alfetopito , great! Small question: is this OK to show an absolute value in green? green

I chose to do that to be a stand in replaced for the % in the table.
In the order details though...
I don't mind

@alfetopito alfetopito merged commit efdca5c into develop Jul 14, 2023
@alfetopito alfetopito deleted the improve-huge-surplus-display branch July 14, 2023 14:14
@anxolin
Copy link
Contributor

anxolin commented Jul 14, 2023

nice! thanks

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