seamless-protocol/ilm

Handling `minAmountOut` and similar parameters during swapping

Closed this issue · 0 comments

We need to protect against sandwich attack on DEX swaps (both from rebalance explicitly, on rebalances for deposit/withdraw). We should calculate a minAmountOut value maybe from the oracle price