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

Building a transaction returns a value of 0 #96

Open
devdanio opened this issue Nov 6, 2021 · 1 comment
Open

Building a transaction returns a value of 0 #96

devdanio opened this issue Nov 6, 2021 · 1 comment

Comments

@devdanio
Copy link

devdanio commented Nov 6, 2021

I forked the sandbox example to build a transaction using the SDK from here: https://codesandbox.io/s/nameless-snow-1gxn3?file=/src/paraswap_sdk.ts

It works fine going from MATIC -> USDC, but when i change it from USDC -> MATIC it returns a value of 0. Any idea what is going on here ? (specifically referring to the last function getExampleSwapTransaction on line 241)

@tetuaoro
Copy link

Hi there,

USDC is a (x)rc20 token and to swap from an (x)rc20 token, you doesn't need a set value.

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