From b168a6060c9e3833bc551ca239a9a9736504db71 Mon Sep 17 00:00:00 2001 From: Christopher Mael Date: Sat, 23 Mar 2024 17:30:05 +0100 Subject: [PATCH] make Sets and Map into consts --- buy.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buy.ts b/buy.ts index 1eeff05..4921e2d 100644 --- a/buy.ts +++ b/buy.ts @@ -53,16 +53,16 @@ const solanaConnection = new Connection(RPC_ENDPOINT, { wsEndpoint: RPC_WEBSOCKET_ENDPOINT, }); -export type MinimalTokenAccountData = { +export interface MinimalTokenAccountData { mint: PublicKey; address: PublicKey; poolKeys?: LiquidityPoolKeys; market?: MinimalMarketLayoutV3; }; -let existingLiquidityPools: Set = new Set(); -let existingOpenBookMarkets: Set = new Set(); -let existingTokenAccounts: Map = new Map(); +const existingLiquidityPools: Set = new Set(); +const existingOpenBookMarkets: Set = new Set(); +const existingTokenAccounts: Map = new Map(); let wallet: Keypair; let quoteToken: Token;