@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.
- package/dist/open-auction.js +3 -0
- package/package.json +1 -1
package/dist/open-auction.js
CHANGED
|
@@ -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}
|