File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ) ) {
You can’t perform that action at this time.
0 commit comments