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

param 'excludeContractMethods' does not work in paraswap getRate method #95

Open
luuuuo opened this issue Oct 12, 2021 · 0 comments
Open

Comments

@luuuuo
Copy link

luuuuo commented Oct 12, 2021

https://developers.paraswap.network/api/get-rate-for-a-token-pair
version: paraswap-sdk 5.0.0

const priceRoute = await paraSwap.getRate(from.address, to.address, srcAmount.toString(), '0x0000000000000000000000000000000000000000', SwapSide.SELL, {
        excludeContractMethods: [
          'swapOnZeroXv2',
          'swapOnZeroXv4',
          'swapOnUniswap',
          'swapOnUniswapFork'
        ],
        partner: 'PIGGY'
      }, from.decimals, to.decimals)

It has no error, but it still return the swapOnZeroXv4 swap method,
param 'excludeContractMethods' does not work in paraswap getRate method

bogdoslavik pushed a commit to dystopia-exchange/paraswap-sdk that referenced this issue May 14, 2022
Handle special dexkey for payload encoding
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

1 participant