@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
13 lines • 499 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getJLPApr = getJLPApr;
const Pool_1 = require("../idl_codegen_jupiter_perps/accounts/Pool");
async function getJLPApr(connection, poolAddress) {
const jlpPool = await Pool_1.Pool.fetch(connection, poolAddress);
if (!jlpPool) {
throw new Error('JLP pool not found');
}
const poolApr = jlpPool.poolApr;
return poolApr.feeAprBps.toNumber() / 100;
}
//# sourceMappingURL=jupiterPerps.js.map
;