paraswap-sdk
paraswap-sdk copied to clipboard
Building a transaction returns a value of 0
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)
Hi there,
USDC is a (x)rc20 token and to swap from an (x)rc20 token, you doesn't need a set value.