@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.
- package/dist/open-auction.js +1 -1
- package/package.json +1 -1
package/dist/open-auction.js
CHANGED
|
@@ -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.
|
|
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]);
|