Skip to content

Instantly share code, notes, and snippets.

@boxme
Created May 5, 2025 08:55
Show Gist options
  • Save boxme/e22838df20e5913717012b651e25b344 to your computer and use it in GitHub Desktop.
Save boxme/e22838df20e5913717012b651e25b344 to your computer and use it in GitHub Desktop.
quote_multiple_routes
---
source: jupiter-core/tests/test_routing.rs
assertion_line: 252
expression: results
---
[
ResultSummary {
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
input_amount: 400000,
route_len: 3,
route_plan: [
RoutePlanStep {
swap_info: SwapInfo {
amm_key: BQR6JJFyMWxnUERqbCRCCy1ietW2yq8RTKDx9odzruha,
label: "Stabble Weighted Swap",
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
in_amount: 4000,
out_amount: 27869,
fee_amount: 282,
fee_mint: So11111111111111111111111111111111111111112,
},
percent: 1,
},
RoutePlanStep {
swap_info: SwapInfo {
amm_key: AvBSC1KmFNceHpD6jyyXBV6gMXFxZ8BJJ3HVUN8kCurJ,
label: "Obric V2",
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
in_amount: 392000,
out_amount: 2721811,
fee_amount: 176,
fee_mint: So11111111111111111111111111111111111111112,
},
percent: 98,
},
RoutePlanStep {
swap_info: SwapInfo {
amm_key: 81MPQqJY58rgT83sy99MkRHs2g3dyy6uWKHD24twV62F,
label: "Meteora DLMM",
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
in_amount: 4000,
out_amount: 27836,
fee_amount: 1,
fee_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
},
percent: 1,
},
],
output_amount: 2777516,
},
ResultSummary {
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
input_amount: 400000,
route_len: 2,
route_plan: [
RoutePlanStep {
swap_info: SwapInfo {
amm_key: AvBSC1KmFNceHpD6jyyXBV6gMXFxZ8BJJ3HVUN8kCurJ,
label: "Obric V2",
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
in_amount: 396000,
out_amount: 2749585,
fee_amount: 178,
fee_mint: So11111111111111111111111111111111111111112,
},
percent: 99,
},
RoutePlanStep {
swap_info: SwapInfo {
amm_key: BQR6JJFyMWxnUERqbCRCCy1ietW2yq8RTKDx9odzruha,
label: "Stabble Weighted Swap",
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
in_amount: 4000,
out_amount: 27869,
fee_amount: 282,
fee_mint: So11111111111111111111111111111111111111112,
},
percent: 1,
},
],
output_amount: 2777454,
},
ResultSummary {
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
input_amount: 400000,
route_len: 1,
route_plan: [
RoutePlanStep {
swap_info: SwapInfo {
amm_key: AvBSC1KmFNceHpD6jyyXBV6gMXFxZ8BJJ3HVUN8kCurJ,
label: "Obric V2",
input_mint: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v,
output_mint: So11111111111111111111111111111111111111112,
in_amount: 400000,
out_amount: 2777358,
fee_amount: 180,
fee_mint: So11111111111111111111111111111111111111112,
},
percent: 100,
},
],
output_amount: 2777358,
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment