@reserve-protocol/dtf-rebalance-lib 2.3.0 → 2.3.2

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.
@@ -205,11 +205,10 @@ const getOpenAuction = (rebalance, _supply, _initialSupply, _initialAssets = [],
205
205
  console.log("finalStageAt", finalStageAt.toString());
206
206
  }
207
207
  // approach finalStageAt first
208
- if (progression.lt(0.99) && relativeProgression.lt(finalStageAt.sub(0.02))) {
208
+ if (relativeProgression.lt(finalStageAt.sub(0.01))) {
209
209
  round = AuctionRound.PROGRESS;
210
210
  target = initialProgression.add(numbers_1.ONE.sub(initialProgression).mul(finalStageAt));
211
- // never leave more than 1 bps for next auction
212
- if (target.gt(numbers_1.ONE.sub(1e-4))) {
211
+ if (target.gt(numbers_1.ONE.sub(1e-5))) {
213
212
  target = numbers_1.ONE;
214
213
  }
215
214
  if (target.eq(numbers_1.ONE)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/dtf-rebalance-lib",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Rebalancing library for DTFs in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",