@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.
- package/dist/open-auction.js +1 -1
- package/package.json +1 -1
- package/src/open-auction.ts +1 -1
package/dist/open-auction.js
CHANGED
@@ -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.
|
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
package/src/open-auction.ts
CHANGED
@@ -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.
|
294
|
+
if (rebalanceTarget.gt(ONE)) {
|
295
295
|
throw new Error('something has gone very wrong')
|
296
296
|
}
|
297
297
|
}
|