File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -585,6 +585,7 @@ const runBot = async () => {
585585 } ) ;
586586
587587 let needDriftStateWatcher = false ;
588+ let needDriftClient = false ;
588589
589590 if ( configHasBot ( config , 'pythCranker' ) ) {
590591 needPythPriceSubscriber = true ;
@@ -605,7 +606,7 @@ const runBot = async () => {
605606 }
606607 if ( configHasBot ( config , 'pythLazerCranker' ) ) {
607608 needPriorityFeeSubscriber = true ;
608- needDriftStateWatcher = true ;
609+ needDriftClient = true ;
609610
610611 bots . push (
611612 new PythLazerCrankerBot (
@@ -917,7 +918,7 @@ const runBot = async () => {
917918
918919 // Run subscribe functions once
919920 if (
920- needCheckDriftUser ||
921+ ( needDriftClient && needCheckDriftUser ) ||
921922 needForceCollateral ||
922923 eventSubscriber ||
923924 needUserMapSubscribe ||
You can’t perform that action at this time.
0 commit comments