File tree 3 files changed +6
-6
lines changed
packages/plugin-solana/src/actions
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export const createAndBuyToken = async ({
66
66
priorityFee,
67
67
requiredLiquidity = 85 ,
68
68
allowOffCurve,
69
- commitment = "finalized " ,
69
+ commitment = "confirmed " ,
70
70
fomo,
71
71
connection,
72
72
} : {
@@ -182,7 +182,7 @@ export const buyToken = async ({
182
182
slippage,
183
183
connection,
184
184
currency = "sol" ,
185
- commitment = "finalized " ,
185
+ commitment = "confirmed " ,
186
186
} : {
187
187
fomo : Fomo ;
188
188
buyer : Keypair ;
@@ -281,7 +281,7 @@ export const sellToken = async ({
281
281
slippage,
282
282
connection,
283
283
currency = "token" ,
284
- commitment = "finalized " ,
284
+ commitment = "confirmed " ,
285
285
} : {
286
286
fomo : Fomo ;
287
287
seller : Keypair ;
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export const createAndBuyToken = async ({
56
56
buyAmountSol,
57
57
priorityFee,
58
58
allowOffCurve,
59
- commitment = "finalized " ,
59
+ commitment = "confirmed " ,
60
60
sdk,
61
61
connection,
62
62
slippage,
@@ -416,7 +416,7 @@ export default {
416
416
417
417
const wallet = new Wallet ( deployerKeypair ) ;
418
418
const provider = new AnchorProvider ( connection , wallet , {
419
- commitment : "finalized " ,
419
+ commitment : "confirmed " ,
420
420
} ) ;
421
421
const sdk = new PumpFunSDK ( provider ) ;
422
422
// const slippage = runtime.getSetting("SLIPPAGE");
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export const executeSwap = async (
82
82
lastValidBlockHeight : latestBlockhash . lastValidBlockHeight ,
83
83
blockhash : latestBlockhash . blockhash ,
84
84
} ,
85
- "finalized "
85
+ "confirmed "
86
86
) ;
87
87
if ( confirmation . value . err ) {
88
88
elizaLogger . log ( "Confirmation error" , confirmation . value . err ) ;
You can’t perform that action at this time.
0 commit comments