set an upper bound

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2024-07-30 20:46:52 +02:00
parent 28ace32c17
commit 4f7a913eb2
1 changed files with 4 additions and 1 deletions

View File

@ -165,7 +165,10 @@ interface OracleInterface {
{
signers: [],
transactionInstruction: createComputeBudgetIx(
Math.max(lamportsPerCu ?? 150_000, 150_000),
Math.min(
Math.max(lamportsPerCu ?? 150_000, 150_000),
400_000,
),
),
},
...txChunk.map((tx) => ({