File tree Expand file tree Collapse file tree 3 files changed +343
-358
lines changed
Expand file tree Collapse file tree 3 files changed +343
-358
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,8 @@ export class PythCrankerBot implements Bot {
386386 ) ;
387387
388388 // Pair up the feed ids to fetch vaa and update
389- const feedIdPairs = chunks ( feedIdsToUpdate , 2 ) ;
389+ const feedIdPairs = chunks ( feedIdsToUpdate , 1 ) ;
390+
390391 await Promise . all (
391392 feedIdPairs . map ( async ( feedIds ) => {
392393 const vaa = await this . getVaaForPriceFeedIds (
@@ -445,6 +446,9 @@ export class PythCrankerBot implements Bot {
445446 microLamports : priorityFees ,
446447 } )
447448 ) ;
449+
450+ console . log ( `feedId: ${ feedIds [ 0 ] } , VAA size: ${ vaa . length } ` ) ;
451+
448452 ixs . push (
449453 ...( await this . driftClient . getPostPythPullOracleUpdateAtomicIxs (
450454 vaa ,
Original file line number Diff line number Diff line change @@ -198,12 +198,12 @@ export class UserPnlSettlerBot implements Bot {
198198 if ( this . runOnce ) {
199199 await this . trySettleNegativePnl ( ) ;
200200 await this . trySettleUsersWithNoPositions ( ) ;
201- await this . trySettlePositivePnlForLowMargin ( ) ;
201+ await this . trySettlePositivePnlForLowMargin ( ) ;
202202 } else {
203203 // Initial settlement
204204 await this . trySettleNegativePnl ( ) ;
205205 await this . trySettleUsersWithNoPositions ( ) ;
206- await this . trySettlePositivePnlForLowMargin ( ) ;
206+ await this . trySettlePositivePnlForLowMargin ( ) ;
207207
208208 // Set up intervals
209209 this . intervalIds . push (
You can’t perform that action at this time.
0 commit comments