2 day read before on price APR
This commit is contained in:
parent
b7c3cce958
commit
f874a1f20a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue