Fee on Transfer
token is a token that takes a percentage of sent amount as a fee.
Bid
function in SpiceAuction
contract correctly calculates the amount of received tokens by recipient. However the following check leads to denial of service every time these tokens are used.
When user places a bid the amount
of tokens are transfered from his address. When this token is fee on tranfer token, a fee will be subtracted from that amount
. The recipient will receive amount - fee
tokens. _bidTokenAmountAfter - _bidTokenAmountBefore
will always be different (smaller) than amount
. This function will always revert for fee on transfer tokens.
Spice auction will not work with fee on transfer tokens. Current implementation of bid
function leads to DoS
every time a fee on transfer token is used.
Here is a pseudocode with possible fix:
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.