@nested-finance/lego-contracts
Advanced tools
Comparing version 1.5.10 to 1.5.11
{ | ||
"name": "@nested-finance/lego-contracts", | ||
"version": "1.5.10", | ||
"version": "1.5.11", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -28,3 +28,3 @@ "use strict"; | ||
const swapSide = 'spendQty' in config ? sdk_1.SwapSide.SELL : sdk_1.SwapSide.BUY; | ||
const priceRoute = await paraSwap.getRate(config.spendToken, config.buyToken, amount.toString(), config.userAddress, swapSide, { excludeDEXS: ['0x'], partner: 'nested' }, config.spendTokenDecimals, config.buyTokenDecimals); | ||
const priceRoute = await paraSwap.getRate(config.spendToken, config.buyToken, amount.toString(), config.userAddress, swapSide, { excludeDEXS: ['0x', 'ParaSwapPool', 'ParaSwapLimitOrders'], partner: 'nested' }, config.spendTokenDecimals, config.buyTokenDecimals); | ||
if ('message' in priceRoute) { | ||
@@ -31,0 +31,0 @@ if (priceRoute.message === 'No routes found with enough liquidity') { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
334473