File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ export function isOracleStaleOrUnconfident(
434
434
}
435
435
if ( debug && deviation ) {
436
436
console . log (
437
- `- ${ debugPrefix ?. padStart ( 30 ) } : deviation within confidence tolerance ${ deviation . mul ( I80F48 . fromNumber ( 100 ) ) . div ( confFilter ) . toFixed ( 3 ) } %` ,
437
+ `- ${ debugPrefix ?. padStart ( 30 ) } : deviation within confidence tolerance ${ deviation . div ( price ) . mul ( I80F48 . fromNumber ( 100 ) ) . toFixed ( 3 ) } %` ,
438
438
) ;
439
439
}
440
440
Original file line number Diff line number Diff line change @@ -288,6 +288,15 @@ export const createComputeBudgetIx = (
288
288
return computeBudgetIx ;
289
289
} ;
290
290
291
+ export const createComputeLimitIx = (
292
+ units : number ,
293
+ ) : TransactionInstruction => {
294
+ const computeBudgetIx = ComputeBudgetProgram . setComputeUnitLimit ( {
295
+ units,
296
+ } ) ;
297
+ return computeBudgetIx ;
298
+ } ;
299
+
291
300
export class MangoError extends Error {
292
301
message : string ;
293
302
txid : string ;
You can’t perform that action at this time.
0 commit comments