@reserve-protocol/dtf-rebalance-lib 2.4.3 → 2.4.4

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.
@@ -375,7 +375,7 @@ const getOpenAuction = (rebalance, _supply, _initialSupply, _initialAssets = [],
375
375
  const buyUpTo = (newWeights[i].low * newLimits.low * _supply) / numbers_1.D18n / numbers_1.D27n;
376
376
  const sellDownTo = (newWeights[i].high * newLimits.high * _supply + (numbers_1.D18n * numbers_1.D27n - 1n)) / numbers_1.D18n / numbers_1.D27n;
377
377
  // {USD}
378
- const tradeThreshold = round == AuctionRound.EJECT ? numbers_1.ONE : numbers_1.ZERO;
378
+ const tradeThreshold = round == AuctionRound.EJECT ? numbers_1.ZERO : numbers_1.ONE;
379
379
  if (_assets[i] < buyUpTo) {
380
380
  // {wholeTok} = {tok} / {tok/wholeTok}
381
381
  const deficitAmount = new utils_1.Decimal((buyUpTo - _assets[i]).toString()).div(decimalScale[i]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reserve-protocol/dtf-rebalance-lib",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "description": "Rebalancing library for DTFs in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",