mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-13 08:12:38 +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);
|
const PRIVATE_KEY = retrieveEnvVariable('PRIVATE_KEY', logger);
|
||||||
|
|
||||||
async function init(): Promise<void> {
|
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));
|
wallet = Keypair.fromSecretKey(bs58.decode(PRIVATE_KEY));
|
||||||
logger.info(`Wallet Address: ${wallet.publicKey.toString()}`);
|
logger.info(`Wallet Address: ${wallet.publicKey.toString()}`);
|
||||||
const allLiquidityPools = await getAllAccountsV4(solanaConnection);
|
const allLiquidityPools = await getAllAccountsV4(solanaConnection);
|
||||||
|
|||||||
Reference in New Issue
Block a user