I don’t know what’s going on—why does it show that the left and right sides are not equal? I didn’t follow the tutorial’s approach of converting to int
, but instead used uint
, because I know which token is flowing in and which token is flowing out in the function. For example: if it’s an outflow token, then actualBalance = start - end
; if it’s an inflow token, then actualBalance = end - start
. This way, I don’t need to convert to int
, but I don’t know which step went wrong.
#316
jupiter-Pulin
started this conversation in
General
Replies: 1 comment 2 replies
-
I think the expected behavior is that the test will not pass because after 10 swaps, a fee will be taken on the output token, and we will get less than we are supposed to get, and that is exactly what happened. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
handler:
invariant:
Beta Was this translation helpful? Give feedback.
All reactions