Users can lose funds while swapping, if the swap isn't bad for protocol.
After the expoit, the team has mitigated the issue with hardcoded amountOutMinimum
to 0, which resulted in major expoit minting large amount of EURO, which are undercollateralized. Now it is calculateMinimumAmountOut
is preventing such scenario, but there is another concern, when the position is healthy. If the amount, which is being swaped doesn't participate in current collateral, amountOutMinimum
is set to 0, which could result in malicious bot sandwiching user's swap (practically stealing his funds over the required collateral).
Lost of funds of the owner of the vault
Manual Review
Implement a slippage tollerance, instead of fixing it to 0, when collateral is enough
Example:
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.