计算Aura池的收益APR

  • BAL APR

    const rewardPerYear = exactToSimple(rewardRate) * (86_400 * 365);
    const rewardPerYearUsd = rewardPerYear * rewardTokenPrice;
    const value = (rewardPerYearUsd / poolTVL) * 100;
  • AURA APR

💡 使用在第一节提到的 getAuraMintAmount()

const auraPerYear = getAuraMintAmount(balApr.rewardPerYear, auraStaticQuery.data.global);
const auraPerYearUsd = exactToSimple(auraPerYear) * auraPrice;
const value = (auraPerYearUsd / tvl) * 100;

Last updated