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