Skip to content

feat(solana-solvers): PR 2.2 buy orders via v1 ExactOut#4637

Draft
squadgazzz wants to merge 1 commit into
solana-solvers/PR2-jupiter-adapterfrom
solana-solvers/PR2.2-buy-orders
Draft

feat(solana-solvers): PR 2.2 buy orders via v1 ExactOut#4637
squadgazzz wants to merge 1 commit into
solana-solvers/PR2-jupiter-adapterfrom
solana-solvers/PR2.2-buy-orders

Conversation

@squadgazzz

@squadgazzz squadgazzz commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Description

Buy-order support for the Jupiter solver, split out from PR2 and gated off by default. Both sides share the v1 path: PR2 quotes sells with ExactIn, this adds ExactOut for buys. Stacked on PR2.

Changes

  • enable_buy_orders config flag, off by default. While off, buy orders return OrderNotSupported.
  • swap() picks swapMode per side: ExactIn for sells, ExactOut for buys. Same /swap/v1/quote + /swap-instructions path and DTO as sells, no new response type.

How to test

New unit test (buy gated off). Live #[ignore] buy test (ExactOut): cargo test -p solana-solvers -- --ignored jupiter_live (keyless works, JUPITER_API_KEY optional).

Notes

  • Stacked on PR2 (solana-solvers/PR2-jupiter-adapter), review that first.
  • Part of the Jupiter solver plan (specs PR cowprotocol/solana-services-specifications#33).

@squadgazzz
squadgazzz force-pushed the solana-solvers/PR2.2-buy-orders branch from c39f6f0 to 636bc46 Compare July 17, 2026 16:11
@squadgazzz
squadgazzz force-pushed the solana-solvers/PR2.2-buy-orders branch from 636bc46 to 742b0ac Compare July 17, 2026 17:22
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.

1 participant