@reserve-protocol/dtf-rebalance-lib 0.0.14 → 0.0.15

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.
@@ -194,7 +194,7 @@ const getOpenAuction = (rebalance, _supply, _initialFolio = [], _targetBasket =
194
194
  // wiggle room to prevent having to re-run an auction at the same stage after price movement
195
195
  round = AuctionRound.PROGRESS;
196
196
  rebalanceTarget = initialProgression.add(numbers_1.ONE.sub(initialProgression).mul(finalStageAt));
197
- if (rebalanceTarget.gte(numbers_1.ONE)) {
197
+ if (rebalanceTarget.gt(numbers_1.ONE)) {
198
198
  throw new Error('something has gone very wrong');
199
199
  }
200
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/dtf-rebalance-lib",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Rebalancing library for DTFs in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -291,7 +291,7 @@ export const getOpenAuction = (
291
291
  round = AuctionRound.PROGRESS
292
292
 
293
293
  rebalanceTarget = initialProgression.add(ONE.sub(initialProgression).mul(finalStageAt))
294
- if (rebalanceTarget.gte(ONE)) {
294
+ if (rebalanceTarget.gt(ONE)) {
295
295
  throw new Error('something has gone very wrong')
296
296
  }
297
297
  }