diff --git a/hooks/useTokenDetails.ts b/hooks/useTokenDetails.ts index f203b12b..c2759f5c 100644 --- a/hooks/useTokenDetails.ts +++ b/hooks/useTokenDetails.ts @@ -109,7 +109,7 @@ export const useTokenDetails = () => { const supplies = getSupplyDetails(tokenDetails); const interestRatesCal = interestRate?.utilization?.map((n, i) => { - const percent = n * 100; + const percent = Math.floor(n * 100); // const rateIndex = interestRate?.utilization.findIndex((i) => i === percent); const borrowRateRaw = interestRate.burrow_apr[i] * 100; const borrowRate = interestRate ? borrowRateRaw : 0;