Increase CU per ix (#763)

This commit is contained in:
riordanp 2023-10-19 14:47:19 +01:00 committed by GitHub
parent 50f451d06d
commit 37dacafcc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export async function sendTransaction(
const totalUserIntendedIxs = ixs.filter(
(ix) => !ix.programId.equals(COMPUTE_BUDGET_PROGRAM_ID),
).length;
const requestCu = Math.min(totalUserIntendedIxs * 250_000, 1_600_000);
const requestCu = Math.min(totalUserIntendedIxs * 300_000, 1_600_000);
ixs = [
ComputeBudgetProgram.setComputeUnitLimit({
units: requestCu,