Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: returns wrong protocol Version #1036

Open
mkflow27 opened this issue Oct 7, 2024 · 0 comments
Open

API: returns wrong protocol Version #1036

mkflow27 opened this issue Oct 7, 2024 · 0 comments
Assignees

Comments

@mkflow27
Copy link
Contributor

mkflow27 commented Oct 7, 2024

Querying the test api at https://test-api-v3.balancer.fi/ with query below returns protocolVersion with 2 even though the query states useProtocolVersion: 3 and the actual pool is a v3 pool.

{
  sorGetSwapPaths(
    swapAmount: "1",
    swapType: EXACT_IN,
    tokenIn: "0xb19382073c7A0aDdbb56Ac6AF1808Fa49e377B75",
    tokenOut: "0x7b79995e5f793a07bc00c21412e50ecae098e7f9",
    chain: SEPOLIA,
    queryBatchSwap: false
    useProtocolVersion: 3
  ) {
    tokenInAmount
      tokenOutAmount
      returnAmount
      priceImpact {
        error
        priceImpact
      }
    swapAmount
      paths {
        inputAmountRaw
        outputAmountRaw
        pools
        protocolVersion
        tokens {
          address
          decimals
        }
      }
    }
  }

@mkflow27 mkflow27 changed the title API: API: returns wrong protocol Version Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants