-
Notifications
You must be signed in to change notification settings - Fork 41
Conversation
Travis automatic deployment: |
@alfetopito careful on the height of the div considering the added content aka price suggestion. If it gets too tall (e.g when the user puts in too much sell and gets the over balance warning) the submit button will wrap to the right and look shitty af |
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.
Really like the new non-intrusive price flow 👍
Indeed. In that case, what's the best way to handle it? Just increase the default max height? |
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.
I think I never added the feedback from yesterday here.
I'll add it just for documenting.
I think the proposal is super good, and allow us to grow the number of price references, possibly showing also external feeds or the off-chain order book
I have some suggestions:
-
Invert the price icon 🔁 I understand, they should also have the icon, and it will invert all the prices. Including the one he inputed. Of course the other way around. If he clicks in the 🔁 in the limit price, it inverts also the suggestions
-
Show an indicator when our price is +10% ---> we overpay (
not necessarily this PR / 1st version
) -
Show an indicator when our price is -10% ----> we underpay (maybe it’s not executed in 1 batch) (
not necessarily this PR / 1st version
) -
Show an indicator of how liquid/illiquid is a market ---> how can we do this? all deposit tokens can be a good start, but it doesn’t mean it’s liquid. Trades could give you an idea. Also the volume for certain amounts. What people think about this?. This info could be used for showing a warning or some indication to the user (the price shouldn’t be trusted for these illiquid markets). --->
Chen mentioned that this one is tricky, he will think about a possible trust score
definitely not necessarily this PR / 1st version`) -
Units: I think we have still room for adding the units in the price. ie. 1.00117 DAI
-
Add tooltips for the prices. This way, we can properly explain, what does it mean Onchain price for that volume. (
good to have
) -
nit: Price Icon: If we aggregate more price in the future. Add a small icon for each price, as dex aggregator do -> (
not necessarily this PR / 1st version
) -
nit: Highlight or tag the onchain price as the recommended option. If we have the liquidity indicator, we could remove the recommendation (
not necessarily this PR / 1st version
)
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.
I really love it ❤️
I think it's good already as a first version, and we can handle improvements like warnings and so on in different PRs. This way, we handle most of the issues and we deliver sooner a new version (that has many things already).
Some thoughts and comments:
- hahah, I didn't caught you on this one! Good :)
- At the beginning, I didn't like that we show this in multiple ways. But now I've been using it a bit, I actually like it more. The suggestions show the market, and the users price show in QUOTE ber BASE. Let's double check with Chen and @Rafanator , but I'm good with that:
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.
Other than a minor things, like the INFINITE, and probably the tooltip, I think it's good to go.
The others we can add it to our backlog. Feel free to continue working on them since you are on 🔥
But I think we should freeze one version with what we have and deliver
6dfd889
to
4215afd
Compare
@anxolin addressed your comments. I'll wait for your feedback on the tooltip text before merging, though. |
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.
I think it's perfect.
As an optional, and subjective nit. I think it look nice to add a dotted underline to the concept in there you are providing contextual help.
I would also add a link to to this: https://docs.gnosis.io/protocol/docs/introduction1/
df8270e
to
7154f03
Compare
Update July 2
infinity
pricesUpdate Jun 30
infinity
for bad prices. UsingN/A
insteadN/A
selling
word to sentence to make it clear what the amount refers to:Onchain orderbook price for selling <amount> <symbol|name|address>
Worst case scenario (long token symbols):
Regular use case (short token symbols):
TODO:
Proposal
No longer automatically update price inputs with price suggestion.
Instead, show a button and allow the user to make the choice.
Closes #1163
This change adds mostly the logic of fetching the prices and displaying it in a button.
I added 1 price for a single unit and one price for the selected amount.
This way the user has a reference of the
slippage
given his amount.When switching to the inverse price, the suggestion is also inverted.
When clicking in a button, both prices are filled.
It's hideous, I know. Will work on that.
As always, open for suggestions/feedback.
TODO:
infinity
when one of the prices is too big/too small