Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

[2002 - return Fee data to UI] - Show fee amount when SellAmountDoesNotCoverFee #2039

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

W3stside
Copy link
Contributor

Summary

Closes #2002

Previously, the different fee endpoint would return fee data regardless of whether the sell amount was enough to cover the fee (it didn't even throw, really)

New quote endpoint now returns that data as well as part of a data prop.

Seen working:
image

Testing

  1. WETH <> DAI on MAINNET
  2. input 0.00001 WETH
  3. Networks tab shows red quote and response has data prop with fee info
  4. UI shows fee amount as before
  5. yaaaay! 🥳

@W3stside W3stside requested review from a team December 23, 2021 13:31
@W3stside W3stside added the RELEASE Included in the release that is being closed label Dec 23, 2021
@W3stside W3stside mentioned this pull request Dec 23, 2021
2 tasks
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: Gnosis Protocol v2 Swap UI

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.

LGTM!

@W3stside W3stside merged commit e3710a4 into release/1.8.0 Dec 23, 2021
@W3stside W3stside deleted the 2002/fee-error-data branch December 23, 2021 14:23
nenadV91 pushed a commit that referenced this pull request Jan 3, 2022
* upgrade to 7.0

* first iteration of stubbing subgraph in integration tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RELEASE Included in the release that is being closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants