Closed code423n4 closed 2 years ago
pedroais
The deposit amount could be 0
https://github.com/code-423n4/2022-01-sandclock/blob/a90ad3824955327597be00bb0bd183a9c228a4fb/sandclock/contracts/Vault.sol#L420
Require amount != 0
duplicate of #155
duplicate of #64
Handle
pedroais
Vulnerability details
Impact
The deposit amount could be 0
https://github.com/code-423n4/2022-01-sandclock/blob/a90ad3824955327597be00bb0bd183a9c228a4fb/sandclock/contracts/Vault.sol#L420
Recommended Mitigation Steps
Require amount != 0