-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When {currency} is worth {relative amount}, is the inverse of the correct percent #5414
Comments
Hey @greenlucid , could you please fill us in more about the issue you see? |
When 1 WETH is worth (+0.9%) should say instead When 1 WETH is worth (-0.9%) Because the WETH has to be cheaper for the order to fill. Also the color logic should be like, if its - x %, show green, because those are savings. And if its + x %, show red, because the limit order is worse than just buying at current market price |
The
But that's not what "You would get +% WETH at this price" |
Backwards logic on Limit Orders
This should say, when 1 WETH is worth <999%, not
I think the issue comes from the useRatingImpact hook.
I tried digging around and the variable names are not clear, is
activeRate
the currently active market rate? Or the rate at which the order activates?Likewise, is
marketRate
the rate at which the order becomes marketable, or the current market rate?No comments stating this, I couldn't figure out whether if the mistaken inversion occurred at the hook level. It was also like that before last commit.
The text was updated successfully, but these errors were encountered: