shaka
medium
No slippage protection for swaps.
The swap executed in UniV3SwapInput
function sets the parameter amountOutMinimum
to zero, which means that the swap is executed without slippage protection.
The swap can be front run and the protocol receive less tokens than expected.
https://github.com/sherlock-audit/2023-05-USSD/blob/main/ussd-contracts/contracts/USSD.sol#L227-L240
Manual Review
Use the calculated output tokens with certain error margin as the value for amountOutMinimum
.