Platform: Code4rena
Start Date: 17/06/2021
Pot Size: $60,000 USDC
Total HM: 12
Participants: 12
Period: 7 days
Judge: LSDan
Total Solo HM: 8
Id: 14
League: ETH
Rank: 12/12
Findings: 1
Award: $135.42
🌟 Selected for report: 1
🚀 Solo Findings: 0
135.4239 USDC - $135.42
axic
YieldSourcePrizePool
has a check for the supplied yieldSource
to be adhering to the interface. This is done via a manual staticcall
to one function (depositToken
).
The more widespread pattern is using the ERC-165 interface, which not only checks a single functions, but a complete interface.
The staticcall
approach has the possibility of wasting gas, should the recipient perform a lot of steps before hitting an exception.
This is not critical.
Manual review.
Use the ERC-165 standard.
#0 - dmvt
2021-07-31T17:51:20Z
The impact is gas related, so changing to G