diff --git a/src/program/web3.ts b/src/program/web3.ts index 00cf917b5..0dc902867 100644 --- a/src/program/web3.ts +++ b/src/program/web3.ts @@ -65,7 +65,7 @@ export class Web3SolanaProgramInteraction { const parsedAmount = toAmount(tokenAmountRaw, token.decimals); const updateCpIx = ComputeBudgetProgram.setComputeUnitPrice({ - microLamports: 1_000_000 + microLamports: 10_000_000 }); const updateCuIx = ComputeBudgetProgram.setComputeUnitLimit({ units: 500_000 @@ -98,6 +98,13 @@ export class Web3SolanaProgramInteraction { ); } else { const lamportsToSend = tokenAmountRaw * LAMPORTS_PER_SOL; + const updateCpIx = ComputeBudgetProgram.setComputeUnitPrice({ + microLamports: 10_000_000 + }); + const updateCuIx = ComputeBudgetProgram.setComputeUnitLimit({ + units: 500_000 + }); + transaction.add(updateCpIx, updateCuIx); const transferTransaction = transaction.add( SystemProgram.transfer({ fromPubkey: wallet.publicKey,