Submitted by jonah1005
The protocol frequently interacts with crv a lot. However, the contract doesnt specify the minimum return amount.
Given the fact that theres a lot of MEV searchers, calling swap without specifying the minimum return amount really puts user funds in danger.
For example, controllers withdrawAll is designed to transfer all the funds in a strategy.Controller.sol#L360 The arbitrage space is enough for a searcher to sandwich this trade.
Manager.sol#L442-L452
Controller.sol#L273
Always calculates an estimate return when calling to crv.
transferAndCall (yAxis) acknowledged
GalloDaSballo (judge) commented:
