paraswap/paraswap-sdk

param 'excludeContractMethods' does not work in paraswap getRate method

Opened this issue · 0 comments

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