Skip to content

Jupiter/Router - Swapmode is ExactOut and this AMM does not support it #507

@rapcmia

Description

@rapcmia

Describe the bug

Observed when checking development branch and using Solana's default nodeURL https://api.mainnet-beta.solana.com, i got an error swapmode is exactout and this AMM does not support it

2025-08-31 23:31:45 | debug | 	Got Jupiter quote: {
  "inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "inAmount": "4380137",
  "outputMint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
  "outAmount": "9000000",
  "otherAmountThreshold": "4423939",
  "swapMode": "ExactOut",
  "slippageBps": 100,
  "platformFee": null,
  "priceImpactPct": "0.0008126567176908626516540658",
  "routePlan": [
    {
      "swapInfo": {
        "ammKey": "8sLbNZoA1cfnvMJLPfp98ZLAnFSYCFApfJKMbiXNLwxj",
        "label": "Raydium CLMM",
        "inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "outputMint": "So11111111111111111111111111111111111111112",
        "inAmount": "4380137",
        "outAmount": "21859322",
        "feeAmount": "370",
        "feeMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
      },
      "percent": 100,
      "bps": 10000
    },
    {
      "swapInfo": {
        "ammKey": "8phK65jxmTPEN158xLgSr4oZvssw9SyTErpNZj3g7px4",
        "label": "Whirlpool",
        "inputMint": "So11111111111111111111111111111111111111112",
        "outputMint": "bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1",
        "inAmount": "21859322",
        "outAmount": "17611583",
        "feeAmount": "2186",
        "feeMint": "So11111111111111111111111111111111111111112"
      },
      "percent": 100,
      "bps": 10000
    },
    {
      "swapInfo": {
        "ammKey": "KdcztfHmVNRd5qY7oR7AdoNhcpHhjXKesK9JTBnNxwL",
        "label": "Whirlpool",
        "inputMint": "bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1",
        "outputMint": "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",
        "inAmount": "17611583",
        "outAmount": "9000000",
        "feeAmount": "52835",
        "feeMint": "bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1"
      },
      "percent": 100,
      "bps": 10000
    }
  ],
  "contextSlot": 363901957,
  "timeTaken": 0.002767121,
  "swapUsdValue": "4.380137",
  "simplerRouteUsed": false,
  "mostReliableAmmsQuoteReport": {
    "info": {
      "8phK65jxmTPEN158xLgSr4oZvssw9SyTErpNZj3g7px4": "17623394",
      "C8Gr6AUuq9hEdSYJzoEpNcdjpojPZwqG5MtQbeouNNwg": "SwapMode is ExactOut and this AMM does not support it.",
      "BZtgQEyS6eXUXicYPHecYQ7PybqodXQMvkjUbP4R8mUU": "4382668",
      "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE": "4383037"
    }
  },
  "useIncurredSlippageForQuoting": null,
  "otherRoutePlans": null,
  "aggregatorVersion": null,
  "loadedLongtailToken": false
}
  • Most of my orders when using gateway swap command fail with node also in timeouts (expected since its a public node )
  • Tested this with gateway swap and gateway lp
  • Tested with generic.arbtirage_controller

Note: When using a paid nodeURL, not able to reproduce this error ✅

Steps to reproduce

  1. Setup development ver of both hummingbot and gateway
  2. Use default nodeURL https://api.mainnet-beta.solana.com for testing jupiter/router
  3. Run gateway swap command

Release version

dev-2.9.0

Type of installation

Source

Attach required files

logs_gateway_app.log.2025-09-01.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions