Skip to content

feat: implement limit orders contract for AMM#195

Merged
gabito1451 merged 8 commits intoGalactiGuild:mainfrom
Xhristin3:feature/limit-orders-amm
Mar 27, 2026
Merged

feat: implement limit orders contract for AMM#195
gabito1451 merged 8 commits intoGalactiGuild:mainfrom
Xhristin3:feature/limit-orders-amm

Conversation

@Xhristin3
Copy link
Copy Markdown
Contributor

  • Create LimitOrders contract with order book functionality
  • Implement buy/sell limit orders with price-time priority
  • Add market order execution against existing limit orders
  • Support partial fills and order cancellation
  • Gas-optimized storage and matching logic
  • Comprehensive documentation in LIMIT_ORDERS_DOCUMENTATION.md

Features:

  • Order types: Buy (bid) and Sell (ask)
  • Order status: Active, PartiallyFilled, Filled, Cancelled
  • Price encoding: Scaled integers (1e6 precision)
  • Automatic matching when AMM price crosses limit
  • Market orders for instant execution

closes #128

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@Xhristin3 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Xhristin3 Xhristin3 force-pushed the feature/limit-orders-amm branch from 56c2b9a to f027abd Compare March 27, 2026 16:00
@gabito1451 gabito1451 merged commit fe60f57 into GalactiGuild:main Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Limit Order Contract for Secondary AMM

2 participants