OrderBook

First Flight #43
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: medium
Likelihood: medium
Invalid

Slippage Protection

Description Normal behavior: Buyers execute orders at stated prices

Issue: No protection against front-running or last-second price changes

Risk
Likelihood:

Occurs during network congestion

More likely with large orders

Impact:

  • Financial loss for buyers

  • Poor user experience

Recommended Mitigation
diff

  • function buyOrder(uint256 _orderId) public {...

  • function buyOrder(uint256 _orderId, uint256 maxPrice) public {...

    if (orders[_orderId].priceInUSDC > maxPrice) revert PriceTooHigh();

Scope:

I was unable to select scope in scope section !

Updates

Lead Judging Commences

yeahchibyke Lead Judge
16 days ago
yeahchibyke Lead Judge 13 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.