Skip to main content
Get current supply and borrow APY for an asset.
const {depositApy, borrowApy} = await sdk.apy(usdcAddress);

console.log(`Supply APY: ${(depositApy * 100).toFixed(2)}%`);
console.log(`Borrow APY: ${(borrowApy * 100).toFixed(2)}%`);