kamino-sdk-beta
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
19 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateFeesAndRewards = updateFeesAndRewards;
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
const programId_1 = require("../programId");
function updateFeesAndRewards(accounts, programId = programId_1.PROGRAM_ID) {
const keys = [
{ pubkey: accounts.position, isSigner: false, isWritable: true },
{ pubkey: accounts.lbPair, isSigner: false, isWritable: true },
{ pubkey: accounts.binArrayLower, isSigner: false, isWritable: true },
{ pubkey: accounts.binArrayUpper, isSigner: false, isWritable: true },
{ pubkey: accounts.owner, isSigner: true, isWritable: false },
];
const identifier = Buffer.from([154, 230, 250, 13, 236, 209, 75, 223]);
const data = identifier;
const ix = new web3_js_1.TransactionInstruction({ keys, programId, data });
return ix;
}
//# sourceMappingURL=updateFeesAndRewards.js.map