2 day read before on price APR

This commit is contained in:
Finn 2024-02-24 02:37:48 +00:00
parent b7c3cce958
commit f874a1f20a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const fetchRates = async () => {
const lidoRange = getPriceRangeFromPeriod(lidoPrices, PERIOD.DAYS_30)
const rateData: Record<string, number> = {}
rateData.jlp = 12 * (jlpPricesPrice[jlpPricesPrice.length - 1] - jlpPricesPrice[0]) / jlpPricesPrice[0]
rateData.jlp = 12 * (jlpPricesPrice[jlpPricesPrice.length - 2] - jlpPricesPrice[0]) / jlpPricesPrice[0]
if (msolRange) {
rateData.msol = calcYield(msolRange)?.apy