Skip to content

Add SDK joinFundQueue and resolveFundQueue methods #466

Description

@Levi-Ojukwu

Description:

The LP priority queue allows LPs to compete for funding rights based on reputation. The SDK needs methods for:

  1. joinFundQueue(lp, invoiceId) — register LP's intent, snapshot their score
  2. resolveFundQueue(invoiceId) — select the highest-score LP as approved funder

Why it matters: LP priority queuing is a key feature for fair invoice allocation.

Acceptance Criteria:

  • Create both methods with proper validation
  • Handle AlreadyInQueue and NotApprovedFunder errors
  • Add tests for queue ordering logic

Relevant Files: contracts/invoice_liquidity/src/lib.rs:939-1038, sdk/src/index.ts


Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions