t-swap does not support rebase token
In T-Swap, we will use the balanceOf() to calculate the share, or swap amount. The vulnerability is that the balanceOf() for rebase token can change without desposit/withdraw/swap operations.
The core Invariant x * y = k
will be broken.
The core Invariant x * y = k
will be broken. k
may increase or decrease without any operation in t-swap. This will cause all operations into a mess.
In readme, Our system works because the ratio of Token A & WETH will always stay the same.
Actually, this assumption will be broken for rebase token
Manual
Add one blacklist to the rebase token.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.