@marinade.finance/kamino-sdk
Version:
22 lines • 841 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateRewardInfos = void 0;
const web3_js_1 = require("@solana/web3.js"); // eslint-disable-line @typescript-eslint/no-unused-vars
const programId_1 = require("../programId");
/**
* Update rewards info of the given pool, can be called for everyone
*
* # Arguments
*
* * `ctx`- The context of accounts
*
*/
function updateRewardInfos(accounts) {
const keys = [{ pubkey: accounts.poolState, isSigner: false, isWritable: true }];
const identifier = Buffer.from([163, 172, 224, 52, 11, 154, 106, 223]);
const data = identifier;
const ix = new web3_js_1.TransactionInstruction({ keys, programId: programId_1.PROGRAM_ID, data });
return ix;
}
exports.updateRewardInfos = updateRewardInfos;
//# sourceMappingURL=updateRewardInfos.js.map