mirror of
https://github.com/fdundjer/solana-sniper-bot.git
synced 2025-11-10 04:22:05 +10:00
custom fee checking if using jito
This commit is contained in:
2
index.ts
2
index.ts
@ -83,7 +83,7 @@ function printDetails(wallet: Keypair, quoteToken: Token, bot: Bot) {
|
|||||||
logger.info(
|
logger.info(
|
||||||
`Using ${TRANSACTION_EXECUTOR} executer: ${bot.isWarp || bot.isJito || (TRANSACTION_EXECUTOR === 'default' ? true : false)}`,
|
`Using ${TRANSACTION_EXECUTOR} executer: ${bot.isWarp || bot.isJito || (TRANSACTION_EXECUTOR === 'default' ? true : false)}`,
|
||||||
);
|
);
|
||||||
if (bot.isWarp) {
|
if (bot.isWarp || bot.isJito) {
|
||||||
logger.info(`${TRANSACTION_EXECUTOR} fee: ${CUSTOM_FEE}`);
|
logger.info(`${TRANSACTION_EXECUTOR} fee: ${CUSTOM_FEE}`);
|
||||||
} else {
|
} else {
|
||||||
logger.info(`Compute Unit limit: ${botConfig.unitLimit}`);
|
logger.info(`Compute Unit limit: ${botConfig.unitLimit}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user