@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
20 lines • 737 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.setFeeAuthority = setFeeAuthority;
const programId_1 = require("../programId");
function setFeeAuthority(accounts, programAddress = programId_1.PROGRAM_ID) {
const keys = [
{ address: accounts.whirlpoolsConfig, role: 1 },
{
address: accounts.feeAuthority.address,
role: 2,
signer: accounts.feeAuthority,
},
{ address: accounts.newFeeAuthority, role: 0 },
];
const identifier = Buffer.from([31, 1, 50, 87, 237, 101, 97, 132]);
const data = identifier;
const ix = { accounts: keys, programAddress, data };
return ix;
}
//# sourceMappingURL=setFeeAuthority.js.map
;