@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
27 lines • 1.11 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.migratePosition = migratePosition;
const programId_1 = require("../programId");
function migratePosition(accounts, programAddress = programId_1.PROGRAM_ID) {
const keys = [
{
address: accounts.positionV2.address,
role: 3,
signer: accounts.positionV2,
},
{ address: accounts.positionV1, role: 1 },
{ address: accounts.lbPair, role: 0 },
{ address: accounts.binArrayLower, role: 1 },
{ address: accounts.binArrayUpper, role: 1 },
{ address: accounts.owner.address, role: 3, signer: accounts.owner },
{ address: accounts.systemProgram, role: 0 },
{ address: accounts.rentReceiver, role: 1 },
{ address: accounts.eventAuthority, role: 0 },
{ address: accounts.program, role: 0 },
];
const identifier = Buffer.from([15, 132, 59, 50, 199, 6, 251, 46]);
const data = identifier;
const ix = { accounts: keys, programAddress, data };
return ix;
}
//# sourceMappingURL=migratePosition.js.map
;