mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2026-06-22 04:11:27 +10:00
Clean up CLI logs
This commit is contained in:
+2
-1
@@ -133,4 +133,5 @@ pnpm-lock.yaml
|
|||||||
.pnp.*
|
.pnp.*
|
||||||
|
|
||||||
# JetBrains
|
# JetBrains
|
||||||
.idea
|
.idea
|
||||||
|
hailmary.code-workspace
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ export async function processRaydiumPool(id: PublicKey, poolState: LiquidityStat
|
|||||||
`Skipping pool, smaller than ${quoteMinPoolSizeAmount.toFixed()} ${quoteToken.symbol}`,
|
`Skipping pool, smaller than ${quoteMinPoolSizeAmount.toFixed()} ${quoteToken.symbol}`,
|
||||||
`Swap quote in amount: ${poolSize.toFixed()}`,
|
`Swap quote in amount: ${poolSize.toFixed()}`,
|
||||||
);
|
);
|
||||||
|
logger.info(`-------------------🤖🔧------------------- \n`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -281,6 +282,7 @@ async function buy(accountId: PublicKey, accountData: LiquidityStateV4): Promise
|
|||||||
COMMITMENT_LEVEL,
|
COMMITMENT_LEVEL,
|
||||||
);
|
);
|
||||||
if (!confirmation.value.err) {
|
if (!confirmation.value.err) {
|
||||||
|
logger.info(`-------------------🟢------------------- `);
|
||||||
logger.info(
|
logger.info(
|
||||||
{
|
{
|
||||||
mint: accountData.baseMint,
|
mint: accountData.baseMint,
|
||||||
@@ -377,7 +379,7 @@ async function sell(accountId: PublicKey, mint: PublicKey, amount: BigNumberish)
|
|||||||
logger.info({ mint, signature }, `Error confirming sell tx`);
|
logger.info({ mint, signature }, `Error confirming sell tx`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
logger.info(`-------------------🔴------------------- `);
|
||||||
logger.info(
|
logger.info(
|
||||||
{
|
{
|
||||||
dex: `https://dexscreener.com/solana/${mint}?maker=${wallet.publicKey}`,
|
dex: `https://dexscreener.com/solana/${mint}?maker=${wallet.publicKey}`,
|
||||||
@@ -418,7 +420,8 @@ function loadSnipeList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function shouldBuy(key: string): boolean {
|
function shouldBuy(key: string): boolean {
|
||||||
logger.info(processingToken, 'Is processing token buy')
|
logger.info(`-------------------🤖🔧------------------- `);
|
||||||
|
logger.info(`Processing token: ${processingToken}`)
|
||||||
return USE_SNIPE_LIST ? snipeList.includes(key) : ONE_TOKEN_AT_A_TIME ? !processingToken : true
|
return USE_SNIPE_LIST ? snipeList.includes(key) : ONE_TOKEN_AT_A_TIME ? !processingToken : true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user