Uniswap / interface

🦄 Open source interfaces for the Uniswap protocol
https://app.uniswap.org
GNU General Public License v3.0
4.96k stars 5.02k forks source link

UI never loads route #3452

Open JFrankfurt opened 2 years ago

JFrankfurt commented 2 years ago

API returns a route, but the interface does not accept it.

no errors logged to console

UI state: image

request completes with 200 and this data:

{
  "blockNumber": "14341023",
  "amount": "7136305311337962759744",
  "amountDecimals": "7136.305311337962759744",
  "quote": "16231610677",
  "quoteDecimals": "16231.610677",
  "quoteGasAdjusted": "16198711826",
  "quoteGasAdjustedDecimals": "16198.711826",
  "gasUseEstimateQuote": "32898850",
  "gasUseEstimateQuoteDecimals": "32.89885",
  "gasUseEstimate": "328000",
  "gasUseEstimateUSD": "32.9252",
  "gasPriceWei": "38624041406",
  "route": [
    [
      {
        "type": "v2-pool",
        "address": "0x85Cb0baB616Fe88a89A35080516a8928F38B518b",
        "tokenIn": {
          "chainId": 1,
          "decimals": "18",
          "address": "0x0cEC1A9154Ff802e7934Fc916Ed7Ca50bDE6844e",
          "symbol": "POOL"
        },
        "tokenOut": {
          "chainId": 1,
          "decimals": "18",
          "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
          "symbol": "WETH"
        },
        "reserve0": {
          "token": {
            "chainId": 1,
            "decimals": "18",
            "address": "0x0cEC1A9154Ff802e7934Fc916Ed7Ca50bDE6844e",
            "symbol": "POOL"
          },
          "quotient": "149012634858504929184494"
        },
        "reserve1": {
          "token": {
            "chainId": 1,
            "decimals": "18",
            "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "symbol": "WETH"
          },
          "quotient": "137418085113328355865"
        },
        "amountIn": "6065859514637268345782"
      },
      {
        "type": "v2-pool",
        "address": "0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc",
        "tokenIn": {
          "chainId": 1,
          "decimals": "18",
          "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
          "symbol": "WETH"
        },
        "tokenOut": {
          "chainId": 1,
          "decimals": "6",
          "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "symbol": "USDC"
        },
        "reserve0": {
          "token": {
            "chainId": 1,
            "decimals": "6",
            "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "symbol": "USDC"
          },
          "quotient": "101871569735186"
        },
        "reserve1": {
          "token": {
            "chainId": 1,
            "decimals": "18",
            "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
            "symbol": "WETH"
          },
          "quotient": "39412617480239187996900"
        },
        "amountOut": "13809717325"
      }
    ],
    [
      {
        "type": "v3-pool",
        "address": "0xff2bDF3044C601679dEde16f5D4a460B35cebfeE",
        "tokenIn": {
          "chainId": 1,
          "decimals": "18",
          "address": "0x0cEC1A9154Ff802e7934Fc916Ed7Ca50bDE6844e",
          "symbol": "POOL"
        },
        "tokenOut": {
          "chainId": 1,
          "decimals": "18",
          "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
          "symbol": "WETH"
        },
        "fee": "3000",
        "liquidity": "678235882200254777886",
        "sqrtRatioX96": "2403011339589492687934425130",
        "tickCurrent": "-69916",
        "amountIn": "1070445796700694413961"
      },
      {
        "type": "v3-pool",
        "address": "0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640",
        "tokenIn": {
          "chainId": 1,
          "decimals": "18",
          "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
          "symbol": "WETH"
        },
        "tokenOut": {
          "chainId": 1,
          "decimals": "6",
          "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "symbol": "USDC"
        },
        "fee": "500",
        "liquidity": "24754439466278286472",
        "sqrtRatioX96": "1558525043927257034546237091869974",
        "tickCurrent": "197748",
        "amountOut": "2421893352"
      }
    ]
  ],
  "routeString": "[V2] 85.00% = POOL -- [0x85Cb0baB616Fe88a89A35080516a8928F38B518b] --> WETH -- [0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc] --> USDC, [V3] 15.00% = POOL -- 0.3% [0xff2bDF3044C601679dEde16f5D4a460B35cebfeE] --> WETH -- 0.05% [0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640] --> USDC",
  "quoteId": "5bb47"
}
JFrankfurt commented 2 years ago

@justindomingue pinging you here in case you know immediately what's going on