interface icon indicating copy to clipboard operation
interface copied to clipboard

show warning if disable multihop is resulting in a very bad price

Open moodysalem opened this issue 5 years ago • 4 comments

If the user has disable multihop toggled, it can result in a very bad route https://github.com/Uniswap/uniswap-interface/issues/1354

We should show a warning if the price is very bad as a result of the disable multihop setting. This is a minor improvement, when the proper fix is that the user should never have to worry about the route (i.e. we fix the routing to obsolete the setting).

moodysalem avatar Apr 05 '21 15:04 moodysalem

I apologize I've been attacket so if please let me know if anything that doesn't sounds right .

Enxhi369 avatar Apr 05 '21 15:04 Enxhi369

Here's the current UI for such situations:

Screenshot 2021-05-01 at 19 22 41

Is the additional warning meant to be displayed after the user presses the "swap anyway" button? Or is it more about explicitly explaining why the price impact is so high in the main swap UI?

jochenboesmans avatar May 01 '21 17:05 jochenboesmans

Here's a potential solution that simply adds an explanation to the confirmation dialogues for high price impact on attempted swap in the case that multi-hops are turned off:

Screenshot 2021-05-02 at 00 15 29

jochenboesmans avatar May 01 '21 22:05 jochenboesmans

Or is it more about explicitly explaining why the price impact is so high in the main swap UI?

This one

Here's a potential solution that simply adds an explanation to the confirmation dialogues for high price impact on attempted swap in the case that multi-hops are turned off:

Looks reasonable, although at that point user may have warning fatigue. Cal may have other ideas.

moodysalem avatar May 02 '21 00:05 moodysalem