Skip to content

Commit 91a790c

Browse files
Update index.ts
Add in tradingEnabled flag to turn on and off swapping but still have the routes and other processes running
1 parent e8d8787 commit 91a790c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'dotenv/config'
44

55
export const SOLANA_RPC_ENDPOINT: string = process.env.RPC_ENDPOINT!;
66
export const WRAP_UNWRAP_SOL: boolean = process.env.WRAP_UNWRAP_SOL === undefined ? true : process.env.WRAP_UNWRAP_SOL === "true";
7+
export const tradingEnabled: boolean = process.env.TRADING_ENABLED === undefined ? true : process.env.TRADING_ENABLED === "true";
78

89
// Wallets
910
export const WALLET_PRIVATE_KEY =

0 commit comments

Comments
 (0)