beethovenxfi / beethovenx-backend

MIT License
13 stars 15 forks source link

SOR: support ETH address (0xeee...ee) #587

Closed gmbronco closed 10 months ago

gmbronco commented 10 months ago
{
  sorGetSwaps(
    swapType: EXACT_IN
    tokenIn: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
    tokenOut: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
    swapAmount: "1"
    chain: MAINNET
    swapOptions: { maxPools: 0 }
  ) {
    returnAmount
  }
}

throws: Missing token from tokenService 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

gmbronco commented 10 months ago

daniel: should never do that path through the SOR the frontend should just change to wrap/unwrap

gmbronco commented 10 months ago

We should be using NATIVE_ASSETS as input / output tokens

https://github.com/balancer/b-sdk/blob/main/src/utils/constants.ts/#L167

gmbronco commented 10 months ago

fixed by #597

sentry-io[bot] commented 10 months ago

Sentry issue: BACKEND-V3-BALANCER-152