-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
Bug Description
When doing a trade which has a 100% price-impact, the uniswap widget breaks with 'something went wrong'
This is a calculation error (Division by zero):

Steps to Reproduce
- Go to gooddapp.org
- go to swap
- set pair G$ > cUsd
- fill in amount below <30 G$
- see result
- compare with using app.uniswap, which shows output as
0for cUsd and a price-impact warning of 100%
...
Expected Behavior
High-price impact of 100% should be shown to user and not show confusing error message.
Proposed solution
- uniswap/widgets barely gets updated or pull-requests merged. so the solution should likely be handled by a patch
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Deploy and Verify