diff --git a/packages/plugin-solana/src/actions/fomo.ts b/packages/plugin-solana/src/actions/fomo.ts index 0497f610cd..42c0ab6b02 100644 --- a/packages/plugin-solana/src/actions/fomo.ts +++ b/packages/plugin-solana/src/actions/fomo.ts @@ -66,7 +66,7 @@ export const createAndBuyToken = async ({ priorityFee, requiredLiquidity = 85, allowOffCurve, - commitment = "finalized", + commitment = "confirmed", fomo, connection, }: { @@ -182,7 +182,7 @@ export const buyToken = async ({ slippage, connection, currency = "sol", - commitment = "finalized", + commitment = "confirmed", }: { fomo: Fomo; buyer: Keypair; @@ -281,7 +281,7 @@ export const sellToken = async ({ slippage, connection, currency = "token", - commitment = "finalized", + commitment = "confirmed", }: { fomo: Fomo; seller: Keypair; diff --git a/packages/plugin-solana/src/actions/pumpfun.ts b/packages/plugin-solana/src/actions/pumpfun.ts index 78bd2fb277..4f7c68ec48 100644 --- a/packages/plugin-solana/src/actions/pumpfun.ts +++ b/packages/plugin-solana/src/actions/pumpfun.ts @@ -56,7 +56,7 @@ export const createAndBuyToken = async ({ buyAmountSol, priorityFee, allowOffCurve, - commitment = "finalized", + commitment = "confirmed", sdk, connection, slippage, @@ -416,7 +416,7 @@ export default { const wallet = new Wallet(deployerKeypair); const provider = new AnchorProvider(connection, wallet, { - commitment: "finalized", + commitment: "confirmed", }); const sdk = new PumpFunSDK(provider); // const slippage = runtime.getSetting("SLIPPAGE"); diff --git a/packages/plugin-solana/src/actions/swapUtils.ts b/packages/plugin-solana/src/actions/swapUtils.ts index 64dcd713c6..8324ac2bbf 100644 --- a/packages/plugin-solana/src/actions/swapUtils.ts +++ b/packages/plugin-solana/src/actions/swapUtils.ts @@ -82,7 +82,7 @@ export const executeSwap = async ( lastValidBlockHeight: latestBlockhash.lastValidBlockHeight, blockhash: latestBlockhash.blockhash, }, - "finalized" + "confirmed" ); if (confirmation.value.err) { elizaLogger.log("Confirmation error", confirmation.value.err);