-
Notifications
You must be signed in to change notification settings - Fork 54
Don't call fee/price endpoint on Wrapping (ETH/WETH || XDAI/WXDAI etc) #1920
Conversation
|
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.
LGTM!
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.
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.
Thanks for the fix, it doesn't do the request anymore, but before merging I would review the case mentioned by @alfetopito , cause I think that's an undesired effect
Maybe is cause chainId is undefined? If that's the case, for the isWrapping check we should assume mainnet (as the app does)
83238f3
to
466ef3f
Compare
Hey @W3stside , I still face issues mentioned above: Moreover, lots of strange numbers See the video: https://watch.screencastify.com/v/jxR0fTCN0HxQVxdJHKr2 |
Steps to reproduce the issue with weird amounts:
|
right now when disconnected we dont show an output for a wrapping operation. on the flip side it no longer does the strange calcuation of a trade when swithcing to ETH from another token as outlined by Elena. it also gets rid of the fee / price messages when wrapping |
Hey @W3stside , now I do not see weird numbers. |
Summary
Closes tech debt: dont call fee/price on wrapping op
Closes #1853 and closes #1927
Dont call fee/price on wrapping operation, any chain
To Test