Skip to content

Commit

Permalink
fix chart
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhochu committed Jan 31, 2024
1 parent 4d6036d commit 0d486f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/useTokenDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d486f6

Please sign in to comment.