@reserve-protocol/dtf-rebalance-lib 2.5.0 → 2.5.1

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.
@@ -180,6 +180,9 @@ const getOpenAuction = (rebalance, _supply, _initialSupply, _initialAssets = [],
180
180
  if (!rebalance.inRebalance[i]) {
181
181
  return numbers_1.ZERO;
182
182
  }
183
+ if (expectedBalances[i].eq(numbers_1.ZERO)) {
184
+ return numbers_1.ONE;
185
+ }
183
186
  // {wholeTok/wholeShare}
184
187
  const balanceInBasket = expectedBalances[i].gt(initialBalance) ? initialBalance : expectedBalances[i];
185
188
  // {1} = {wholeTok/wholeShare} / {wholeTok/wholeShare}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/dtf-rebalance-lib",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Rebalancing library for DTFs in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",