Why the Contract throws the ERC20InsufficentBalance #379
Unanswered
azraelxuemo
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Who is the |
Beta Was this translation helpful? Give feedback.
4 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.
-
https://updraft.cyfrin.io/courses/security/tswap/Debugging-Fuzz-Sequences
Hi, in this course. The YeildERC20.sol just has a fee.



So from my perspective,
If the currentBalance is 100, then after this transfer, the user will get only 90, and the owner of YeildERC20 will get 10.
This will break the INVARIANT.
But why it throws the ERC20InsufficentBalance error.
I would really appreciate it if someone could help me with my confusion.
Beta Was this translation helpful? Give feedback.
All reactions