@paraswap/dex-lib 4.5.9-inter.7 → 4.5.9-inter.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,7 +138,7 @@ class PricingHelper {
138
138
  const applyReducePriceAmounts = reducePriceAmounts && dexInstance.reducePriceAmounts;
139
139
  if (applyReducePriceAmounts) {
140
140
  for (let i = 0; i < amounts.length; i++) {
141
- if (i === 0 || i % 2 === 1 || i === amounts.length - 1) {
141
+ if (i === 0 || i % 3 === 1 || i === amounts.length - 1) {
142
142
  _amounts.push(amounts[i]);
143
143
  }
144
144
  }
@@ -146,7 +146,7 @@ class PricingHelper {
146
146
  else {
147
147
  _amounts = amounts;
148
148
  }
149
- this.logger.info(`chunks-new-7: ${reducePriceAmounts} ${dexInstance.dexKey}: ${from.address}_${to.address}: ${_amounts.length}: `);
149
+ this.logger.info(`chunks-new-8: ${reducePriceAmounts} ${dexInstance.dexKey}: ${from.address}_${to.address}: ${_amounts.length}: `);
150
150
  dexInstance
151
151
  .getPricesVolume(from, to, _amounts, side, blockNumber, limitPools ? limitPools : undefined, transferFees)
152
152
  .then(poolPrices => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraswap/dex-lib",
3
- "version": "4.5.9-inter.7",
3
+ "version": "4.5.9-inter.8",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "repository": "https://github.com/paraswap/paraswap-dex-lib",