@reserve-protocol/dtf-rebalance-lib 0.0.8 → 0.0.9

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.
@@ -297,7 +297,7 @@ const getOpenAuction = (rebalance, _supply, _initialFolio = [], _targetBasket =
297
297
  if (pricesD27.high > initialPrice.high) {
298
298
  pricesD27.high = initialPrice.high;
299
299
  }
300
- if (pricesD27.low == pricesD27.high) {
300
+ if (pricesD27.low == pricesD27.high && priceError[i].gt(numbers_1.ZERO)) {
301
301
  throw new Error('no price range');
302
302
  }
303
303
  return pricesD27;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/dtf-rebalance-lib",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Rebalancing library for DTFs in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -425,7 +425,7 @@ export const getOpenAuction = (
425
425
  pricesD27.high = initialPrice.high
426
426
  }
427
427
 
428
- if (pricesD27.low == pricesD27.high) {
428
+ if (pricesD27.low == pricesD27.high && priceError[i].gt(ZERO)) {
429
429
  throw new Error('no price range')
430
430
  }
431
431