feat(solana-solvers): PR 2.2 buy orders via Jupiter v1 API#4637
Conversation
636bc46 to
742b0ac
Compare
3ca086e to
66b0a05
Compare
fa36489 to
7c5a64e
Compare
|
Claude finished @squadgazzz's task in 1m 42s —— View job PR Review: buy orders via v1 ExactOut
Verdict: LGTM. The change is small, focused, and correctly gated. The No change-worthy issues to flag inline. One non-blocking observation for a later PR (not this one — Note: I couldn't run |
7c5a64e to
2d8f70c
Compare
2d8f70c to
3ef61f5
Compare
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_ordersconfig flag, off by default. While off, buy orders returnOrderNotSupported.swap()picksswapModeper side:ExactInfor sells,ExactOutfor buys. Same/swap/v1/quote+/swap-instructionspath 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_KEYoptional).