Skip to content

Commit 446bd7e

Browse files
committed
progress during eject
1 parent e77a2af commit 446bd7e

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@reserve-protocol/dtf-rebalance-lib",
3-
"version": "2.3.2",
3+
"version": "2.3.3",
44
"description": "Rebalancing library for DTFs in typescript",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

src/open-auction.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -343,20 +343,6 @@ export const getOpenAuction = (
343343
// EJECT -- used later to adjust weights.high and limits.high
344344
if (portionBeingEjected.gt(1e-5)) {
345345
round = AuctionRound.EJECT;
346-
347-
// if the ejections are mostly what's left, target JUST the ejection if that puts us at <100%
348-
let ejectionTarget = progression.add(portionBeingEjected.mul(1.1)); // buy up to 10% extra
349-
if (ejectionTarget.gt(target) && ejectionTarget.lt(ONE)) {
350-
target = ejectionTarget;
351-
}
352-
353-
if (debug) {
354-
console.log(" EJECT round detected:");
355-
console.log(" portionBeingEjected:", portionBeingEjected.toString());
356-
console.log(" progression:", progression.toString());
357-
console.log(" ejectionTarget:", ejectionTarget.toString());
358-
console.log(" target:", target.toString());
359-
}
360346
}
361347

362348
if (target.lte(ZERO) || target.lt(initialProgression) || target.gt(ONE)) {

0 commit comments

Comments
 (0)