Skip to content

Commit

Permalink
Merge pull request #2053 from zhourunlai/solana_transaction_more_lenient
Browse files Browse the repository at this point in the history
feat: solana transaction more lenient
  • Loading branch information
monilpat authored Jan 11, 2025
2 parents 94daffc + babb23f commit b92df53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/plugin-solana/src/actions/fomo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const createAndBuyToken = async ({
priorityFee,
requiredLiquidity = 85,
allowOffCurve,
commitment = "finalized",
commitment = "confirmed",
fomo,
connection,
}: {
Expand Down Expand Up @@ -182,7 +182,7 @@ export const buyToken = async ({
slippage,
connection,
currency = "sol",
commitment = "finalized",
commitment = "confirmed",
}: {
fomo: Fomo;
buyer: Keypair;
Expand Down Expand Up @@ -281,7 +281,7 @@ export const sellToken = async ({
slippage,
connection,
currency = "token",
commitment = "finalized",
commitment = "confirmed",
}: {
fomo: Fomo;
seller: Keypair;
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-solana/src/actions/pumpfun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const createAndBuyToken = async ({
buyAmountSol,
priorityFee,
allowOffCurve,
commitment = "finalized",
commitment = "confirmed",
sdk,
connection,
slippage,
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-solana/src/actions/swapUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b92df53

Please sign in to comment.