@marinade.finance/kamino-sdk
Version:
19 lines • 980 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateFeesAndRewards = void 0;
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
const programId_1 = require("../programId");
function updateFeesAndRewards(accounts) {
const keys = [
{ pubkey: accounts.whirlpool, isSigner: false, isWritable: true },
{ pubkey: accounts.position, isSigner: false, isWritable: true },
{ pubkey: accounts.tickArrayLower, isSigner: false, isWritable: false },
{ pubkey: accounts.tickArrayUpper, isSigner: false, 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: programId_1.WHIRLPOOL_PROGRAM_ID, data });
return ix;
}
exports.updateFeesAndRewards = updateFeesAndRewards;
//# sourceMappingURL=updateFeesAndRewards.js.map