@reserve-protocol/dtf-rebalance-lib 2.4.1 → 2.4.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.
@@ -380,7 +380,7 @@ const getOpenAuction = (rebalance, _supply, _initialSupply, _initialAssets = [],
380
380
  // {USD} = {wholeTok} * {USD/wholeTok}
381
381
  const tokenDeficitValue = deficitAmount.mul(prices[i]);
382
382
  // $1 minimum
383
- if (tokenDeficitValue.gte(numbers_1.ONE)) {
383
+ if (round == AuctionRound.EJECT || tokenDeficitValue.gte(numbers_1.ONE)) {
384
384
  deficitTokens.push(token);
385
385
  deficitTokenSizes.push(tokenDeficitValue.toNumber());
386
386
  }
@@ -391,7 +391,7 @@ const getOpenAuction = (rebalance, _supply, _initialSupply, _initialAssets = [],
391
391
  // {USD} = {wholeTok} * {USD/wholeTok}
392
392
  const tokenSurplusValue = surplusAmount.mul(prices[i]);
393
393
  // $1 minimum
394
- if (tokenSurplusValue.gte(numbers_1.ONE)) {
394
+ if (round == AuctionRound.EJECT || tokenSurplusValue.gte(numbers_1.ONE)) {
395
395
  surplusTokens.push(token);
396
396
  surplusTokenSizes.push(tokenSurplusValue.toNumber());
397
397
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/dtf-rebalance-lib",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Rebalancing library for DTFs in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",