Currently liquidate() requires _amountOut >= _vaultAssets to execute _yieldVault.deposit() if there is a residual balance in the contract. This presents some risk for a sandwich attack.
Example:
Suggesting to remove the _amountOut >= _vaultAssets restriction.
asselstine (PoolTogether) confirmed
PierrickGT (PoolTogether) commented:
For this audit, 19 reports were submitted by wardens detailing gas optimizations. The report highlighted below by c3phas received the top score from the judge.
The following wardens also submitted reports: SAQ, Udsen, hunter_w3b, alymurtazamemon, petrichor, 0xAnah, naman1778, ybansal2403, SM3_SS, 0x11singh99, Raihan, ReyAdmirado, Rolezn, Rageur, SAAJ, 0xn006e7, LeoS, and koxuan.
