mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-12 15:52:37 +10:00
remove unused code
This commit is contained in:
4
buy.ts
4
buy.ts
@ -83,10 +83,6 @@ let usdcTokenKey: PublicKey;
|
||||
const PRIVATE_KEY = retrieveEnvVariable('PRIVATE_KEY', logger);
|
||||
|
||||
async function init(): Promise<void> {
|
||||
if (!PRIVATE_KEY) {
|
||||
logger.error('PRIVATE_KEY is not set');
|
||||
process.exit(1);
|
||||
}
|
||||
wallet = Keypair.fromSecretKey(bs58.decode(PRIVATE_KEY));
|
||||
logger.info(`Wallet Address: ${wallet.publicKey.toString()}`);
|
||||
const allLiquidityPools = await getAllAccountsV4(solanaConnection);
|
||||
|
||||
Reference in New Issue
Block a user