BuyerAgent.sol::withdraw
function does not check if _amount
is zero before attempting a token transfer some ERC-20 tokens may revert when a zero-value transfer is attempted using the transfer function. This can lead to a revert in the withdraw function
if _amount
is zero the transfer may revert for certain(Swan) tokens, causing a Denial of Service (DoS) and as buyerAgent will not be able to complete withdrawals
Manual code review
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.