OrderBook::amendSellOrder
Normally a seller can amend some changes to his existing sell orders to increase or decrease the price of the assets or the quantity, But due to presence of the mev bots that scans the mempool where transaction are stored temporary before execution, they can front-run the amend transaction and buy the order(assets) at old (lower) price, Resulting in seller not able to amend the order and sold out of order at old price
Likelihood:
Reason 1 : Whenever a seller calls the amendSellOrder function and increase the price of the assets.
Impact:
Impact 1: Seller not able to modify the order.
Impact 2:Order sold at lower price than what was wanted by the seller.
Add MevBotAttack contract and test_MevAttackOnSellerAmend to yout TestOrderBook.t.sol file .
Use safe rpc api endpoints like FlashBot rpc to make your transaction invisible from the mev bots.
When a seller wants to amend or cancel their sell orders, a malicious entity can front-run their transactions and buy out the orders. This can be especially harmful when real-world prices of listed assets fluctuate and sellers want to adjust the prices listed in their orders.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.