In the Known Issues section of README, the team states that FOT tokens are known issues, but they have support over it. However, the reality is that it doesn't, and when FOT and rebasing tokens are used for auctions, it will fail.
In this snippet of SpiceAuction.bid()
function, we see the amount is determined by finding the difference between the balance before and after transfer:
However, when a token is FOT, the actual transferred amount will be a bit less than amount
, as fees are deducted during transfer. This makes the balance difference to never match the exact amount, and will always revert.
Claimed support for FOT tokens are actually not supported.
Manual review
If as mentioned in README, FOTs can be supported, remove the balance difference check, and record the actual transferred value users have bid.
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.