Platform: Code4rena
Start Date: 04/05/2022
Pot Size: $50,000 DAI
Total HM: 24
Participants: 71
Period: 5 days
Judge: Justin Goro
Total Solo HM: 14
Id: 119
League: ETH
Rank: 64/71
Findings: 1
Award: $19.18
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: MaratCerby
Also found by: CertoraInc, Ruhum, VAD37, berndartmueller, broccolirob, cryptphi, danb, gzeon, horsefacts, hyh, joestakey, leastwood, pedroais, peritoflores, throttle, wuwe1, z3s
19.1789 DAI - $19.18
Some ERC20 tokens do not conform to the standard of returning a boolean when transfer
is called. If one of these tokens is included as a reward token, the withdraw function will be irrevocably broken, and users won't be able to collect their reward or their deposit tokens. The transferFrom
function may work fine, so adding the token works, but withdrawing breaks.
See, impact, which pretty much explains it.
Manual Analysis
Use SafeERC20 library from OpenZeppelin for calling transfer.
#0 - illuzen
2022-05-12T06:02:13Z
Duplicate #27