The transferErcTokens
function is used to move ERC20 pieces between users. In the beginning it validates the nftAddress
, to
and amount
arguments passed to the function. It then takes the ERC20Info for the specific NFT token and does the same address(0)
check for the to
address, which we had few lines of code above. This is unnecessary, since between the last check, nothing could've updated the to address.
Manual review
Remove the second duplicate if check
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.