Closed code423n4 closed 2 years ago
xYrYuYx
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/DexHandlers/UniswapHandler.sol#L150 https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/DexHandlers/UniswapHandler.sol#L160
Now amountOutMin value is 0. This will lead to buy less malt due to frontrun bots.
Manual
Add amountOutMin value in buyMalt function
Duplicate of #219
Handle
xYrYuYx
Vulnerability details
Impact
https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/DexHandlers/UniswapHandler.sol#L150 https://github.com/code-423n4/2021-11-malt/blob/main/src/contracts/DexHandlers/UniswapHandler.sol#L160
Now amountOutMin value is 0. This will lead to buy less malt due to frontrun bots.
Tools Used
Manual
Recommended Mitigation Steps
Add amountOutMin value in buyMalt function