Be aware that transactions can be frontrun to exactly the estimated amount. #153
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Warden finding
duplicate
Another warden found this issue
Handle
tensors
Vulnerability details
##Impact
The developer should be aware that in many cases where it is profitable, MEV bots will frontrun
the transactions until the output amount is exactly the expected amount, giving the worst execution possible.
In this case, if the expected amount is too low, the protocl losses funds.
##Recommendations
The developer should keep in mind that the expected amount is the lower bound, and setting it too low will result in a loss of funds in most cases. When manually inputting transactions, do not ignore this fact.
The text was updated successfully, but these errors were encountered: