Skip to content

Refactor the reference Order Book to consume Signed Orders #2

Description

@gustavobftorres

Parent

LIME-Protocol/lime-onchain#3

What to build

Update the backend Matching Engine so it receives Signed Orders, matches compatible Buy and Sell Orders, and submits Trade Execution through the official SDK rather than trusting backend-created Orders.

Acceptance criteria

  • API accepts Signed Orders from clients and stores them as Order Book entries
  • Matching only pairs Orders that satisfy side, Market, Price, Quantity, and expiration rules
  • Backend calls settleSignedOrders from @lime/solana for Trade Execution
  • Backend treats on-chain validation as the source of truth for successful Trade Execution
  • Tests cover happy-path match and rejected invalid, expired, replayed, or out-of-range Orders

Blocked by

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions