Skip to content

Commit

Permalink
update compute budget
Browse files Browse the repository at this point in the history
  • Loading branch information
0xodia committed Jan 9, 2025
1 parent f625edb commit 2d0445d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion solend-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solendprotocol/solend-sdk",
"version": "0.13.37",
"version": "0.13.38",
"private": true,
"main": "src/index.ts",
"module": "src/index.ts",
Expand Down
5 changes: 3 additions & 2 deletions solend-sdk/src/core/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1355,11 +1355,12 @@ export class SolendActionCore {
// Get Versioned Transaction
const vtx = new VersionedTransaction(message);

console.log(400_000 + sbPulledOracles.length * 100_000);
if (this.debug) console.log("adding sbod ix to pullPriceTxns");
this.oracleIxs.push({
instruction: ix,
lookupTableAccounts: lookupTables,
computeUnits: 300_000 + sbPulledOracles.length
computeUnits: 400_000 + sbPulledOracles.length * 100_000
});
this.pullPriceTxns.push(vtx);
})
Expand Down Expand Up @@ -1512,7 +1513,7 @@ export class SolendActionCore {
);
this.setupIxs.push({
instruction: refreshReserveIx,
computeUnits: 54690, // 54690 is max amount from a sample. TODO: can get more granular based on pyth/sb/extra oracle
computeUnits: 54_690, // 54690 is max amount from a sample. TODO: can get more granular based on pyth/sb/extra oracle
});
});
}
Expand Down

0 comments on commit 2d0445d

Please sign in to comment.