Skip to content

/quote/v2 reports high swapImpact on long-tail EVM tokens, amountUsd may not match market price #1007

@Buidlor

Description

@Buidlor

We're seeing strange swapImpact / amountUsd values from /quote/v2 on same-chain EVM swaps, mostly on newer low-cap tokens (often Bankr launches on Base). Doesn't seem limited to one asset.

Example below uses EVE on Base (0xe7d192e52fa418236d6eecf7d5eb38da9dd11ba3) for reproduction purpose.

Request

POST https://api.relay.link/quote/v2
{
  "user": "0x....",
  "recipient": "0x....",
  "originChainId": 8453,
  "destinationChainId": 8453,
  "originCurrency": "0x0000000000000000000000000000000000000000",
  "destinationCurrency": "0xe7d192e52fa418236d6eecf7d5eb38da9dd11ba3",
  "amount": "10000000000000000",
  "tradeType": "EXACT_INPUT",
  "slippageTolerance": "2500"
}

Response snippet

{
  "details": {
    "currencyIn": {
      "amountFormatted": "0.01",
      "amountUsd": "21.165148"
    },
    "currencyOut": {
      "amountFormatted": "5710201.695984995566354432",
      "amountUsd": "17.130605"
    },
    "swapImpact": { "percent": "-18.91" },
    "totalImpact": { "percent": "-19.06" },
    "expandedPriceImpact": {
      "swap": { "usd": "0" }
    }
  }
}

Quote returns steps and token amounts look fine. The routes themselves seem mostly OK: for the same input size, the output amounts we get from Relay are in line with what we see on other DEX UIs (e.g. Phantom) for the same pair. So the execution side looks reasonable; it's the reported impact / USD pricing that looks wrong

A few things we saw:

  • About a 19% swapImpact on a 0.01 ETH buy, same ballpark from 0.001 to 0.1 ETH
  • EVE amountUsd implies ~$0.000003/token across those sizes; DexScreener was ~$0.000003659 when I checked
  • swapImpact roughly matches (outUsd - inUsd) / inUsd
  • expandedPriceImpact.swap.usd was 0 on the quotes we looked at
  • 10 ETH buy failed with SWAP_IMPACT_TOO_HIGH; overridePriceImpact: true returned a quote

We're using overridePriceImpact: true as a workaround for now.
The token amounts in the quote look reasonable, but the USD fields do not. For this example, currencyOut.amountUsd values EVE at ~$0.000003/token while DexScreener showed $0.000003659 at the same time. That gap shows up directly in swapImpact (-19% on a 0.01 ETH buy), and larger sizes hit SWAP_IMPACT_TOO_HIGH.

So from our side this looks like a bad USD price in the quote response (or something upstream of amountUsd / swapImpact), not a real liquidity problem. We'd like to understand what price source feeds those fields and when you expect them to be fixed, since we can't rely on swapImpact or amountUsd for these tokens today.

Can share more tokens / request IDs if helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions