Skip to content

Bug: Uniswap widget shows error when high price-impact #576

Description

@L03TJ3

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):
image

Steps to Reproduce

  1. Go to gooddapp.org
  2. go to swap
  3. set pair G$ > cUsd
  4. fill in amount below <30 G$
  5. see result
  6. compare with using app.uniswap, which shows output as 0 for 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions