Platform: Code4rena
Start Date: 06/01/2022
Pot Size: $60,000 USDC
Total HM: 20
Participants: 33
Period: 7 days
Judge: LSDan
Total Solo HM: 9
Id: 67
League: ETH
Rank: 25/33
Findings: 1
Award: $107.62
🌟 Selected for report: 0
🚀 Solo Findings: 0
107.6181 USDC - $107.62
hubble
The current code allows deposit and sponsor for a value of 0 amount, which may unnecessarily add up to the deposits mapping in storage.
File : Vault.sol line# 160 , function deposit(DepositParams calldata _params) external { line# 244 , function sponsor(uint256 _amount, uint256 _lockedUntil)
Manual review and unit test
Check for 0 amount via a require statement in these two functions.
#0 - gabrielpoca
2022-01-13T23:53:53Z