pointless amountOutMin #167
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
Handle
certora
Vulnerability details
https://github.com/code-423n4/2021-12-amun/blob/main/contracts/basket/contracts/singleJoinExit/SingleTokenJoin.sol#L98
pointless amountOutMin.
setting amountOutMin of the swap from the oracle right before the swap is pointless because the oracle uses the same calculation for the same inputs as the swap.
therefore this minimum amount will always be satisfied.
It will have the same effect as setting the minimum amount to zero.
Impact
pointless amountOutMin for the swaps.
this also happens in:
https://github.com/code-423n4/2021-12-amun/blob/main/contracts/basket/contracts/singleJoinExit/SingleTokenJoin.sol#L117
The text was updated successfully, but these errors were encountered: