swap
function in SmartVaultV3.sol
used calculateMinimumAmountOut
to calculate slippage parameter.
https://github.com/Cyfrin/2023-12-the-standard/blob/91132936cb09ef9bf82f38ab1106346e2ad60f91/contracts/SmartVaultV3.sol#L217
However calculateMinimumAmountOut
function can return zero value.
https://github.com/Cyfrin/2023-12-the-standard/blob/91132936cb09ef9bf82f38ab1106346e2ad60f91/contracts/SmartVaultV3.sol#L210-L211
It means that user can get 0 tokens when swapping.
It's possible to swap tokens for nothing.
Manual review.
Consider to revert if slippage is zero.
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.