symbiosis-finance / js-sdk

23 stars 11 forks source link

Swap Error #61

Closed sowell-owen closed 1 year ago

sowell-owen commented 1 year ago

Hello, I'm trying to swap ETH on USDC on ZkSync Era mainnet using symbiosis js sdk.

Here's the source code: https://gist.github.com/sowell-owen/63990c376c256231bef580356c1f5249 Here's the error: https://gist.github.com/sowell-owen/3fa56b0c86d563cae14afad2de091ec4

What's wrong? Thanks in advance!

mxck commented 1 year ago

Hello! It appears that you are attempting to swap assets within the same network. Currently, our SDK only supports crosschain swaps.

sowell-owen commented 1 year ago

Hello! It appears that you are attempting to swap assets within the same network. Currently, our SDK only supports crosschain swaps.

Hello, thanks for the reply. How can I swap assets within the same network through Symbiosis then? Any solution to that?

mxck commented 1 year ago

There is no such feature for now, but we would like to add this feature in the near future. Historically our SDK has been only used for crosschain swaps.

sowell-owen commented 1 year ago

There is no such feature for now, but we would like to add this feature in the near future. Historically our SDK has been only used for crosschain swaps.

I got it, how can I do this without SDK?

mxck commented 1 year ago

You can use one of our aggregators partners directly: 1inch, OpenOcean or OKX