mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-14 08:41:13 +10:00
fix: initialization issue
This commit is contained in:
3
buy.ts
3
buy.ts
@ -191,7 +191,6 @@ export async function processRaydiumPool(
|
|||||||
id: PublicKey,
|
id: PublicKey,
|
||||||
poolState: LiquidityStateV4,
|
poolState: LiquidityStateV4,
|
||||||
) {
|
) {
|
||||||
let accountData: LiquidityStateV4 | undefined;
|
|
||||||
try {
|
try {
|
||||||
if (!shouldBuy(poolState.baseMint.toString())) {
|
if (!shouldBuy(poolState.baseMint.toString())) {
|
||||||
return;
|
return;
|
||||||
@ -199,7 +198,7 @@ export async function processRaydiumPool(
|
|||||||
|
|
||||||
await buy(id, poolState);
|
await buy(id, poolState);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error({ ...accountData, error: e }, `Failed to process pool`);
|
logger.error({ ...poolState, error: e }, `Failed to process pool`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user