This protocol doesn’t support all fee on transfer tokens
The protocol does not fully support fee-on-transfer tokens that deduct fees from the sender's remaining balance rather than the transferred amount. With such tokens, user funds can be lost after transfers because the recipient's balance becomes less than expected.
Submitted by 0x0x0x
Some fee on transfer tokens, do not reduce the fee directly from the transferred amount, but subtracts it from remaining balance of sender. Some tokens prefer this approach, to make the amount received by the recipient an exact amount. Therefore, after funds are send to users, balance becomes less than it should be. So this contract does not fully support fee on transfer tokens. With such tokens, user funds can get lost after transfers.
Mitigation step
I don’t recommend directly claiming to support fee on transfer tokens. Current contract only supports them, if they reduce the fee from the transfer amount.
brockelmore (Streaming Protocol) acknowldedged:
We will make this clear for stream creators
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the contract assumes the received amount equals the transferred amount, without checking the actual balance change, so fee-on-transfer tokens that deduct from the sender's balance cause accounting mismatches.
Impact
User funds could be lost when the protocol handles fee-on-transfer tokens that deduct fees from the sender's remaining balance.
What the attacker needed
Fee-on-transfer token; token deducts fee from sender balance
The fix
The protocol should either clearly state it does not support such tokens or adjust its accounting to measure the actual received amount.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Some tokens take a fee when you send them. Usually the fee comes out of the amount you send, but some tokens take it from your remaining balance instead. This protocol assumes the first behaviour, so if it receives the second kind of token, the amount credited can be wrong and money can be lost.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.