@@ -13,7 +13,7 @@ var executeArbitrageAction = {
1313 similes : [ "TRADE_ARBITRAGE" , "RUN_ARBITRAGE" ] ,
1414 description : "Execute arbitrage trades across markets" ,
1515 validate : async ( runtime , _message ) => {
16- return runtime . getSetting ( "arbitrage.walletPrivateKey" ) !== undefined ;
16+ return runtime . getSetting ( "arbitrage.walletPrivateKey" ) !== void 0 ;
1717 } ,
1818 handler : async ( runtime , _message ) => {
1919 const service = runtime . getService ( ServiceType . ARBITRAGE ) ;
@@ -71,11 +71,11 @@ var Arbitrage = class {
7171 this . wallet = wallet ;
7272 this . flashbotsProvider = flashbotsProvider ;
7373 this . bundleExecutorContract = bundleExecutorContract ;
74- this . bundleEntries = [ ] ;
75- this . thresholds = DEFAULT_THRESHOLDS ;
76- this . MAX_RETRIES = 3 ;
77- this . RETRY_DELAY = 1e3 ;
7874 }
75+ bundleEntries = [ ] ;
76+ thresholds = DEFAULT_THRESHOLDS ;
77+ MAX_RETRIES = 3 ;
78+ RETRY_DELAY = 1e3 ;
7979 async evaluateMarkets ( marketsByToken ) {
8080 elizaLogger . log ( "Starting market evaluation..." ) ;
8181 const opportunities = [ ] ;
@@ -412,13 +412,11 @@ async function getGasPriceInfo(provider) {
412412 return { currentGasPrice, avgGasPrice } ;
413413}
414414var ArbitrageService = class extends Service {
415- constructor ( ) {
416- super ( ...arguments ) ;
417- this . arbitrage = null ;
418- this . wsConnection = null ;
419- this . marketsByToken = { } ;
420- this . currentBlock = 0 ;
421- }
415+ arbitrage = null ;
416+ wsConnection = null ;
417+ marketsByToken = { } ;
418+ currentBlock = 0 ;
419+ runtime ;
422420 static get serviceType ( ) {
423421 return ServiceType . ARBITRAGE ;
424422 }
0 commit comments