From 3e85cf3c28a781fa09120d0d164703d1fb8a0f25 Mon Sep 17 00:00:00 2001 From: Patrick Gallagher Date: Thu, 1 Aug 2024 13:36:24 -0700 Subject: [PATCH] fix stability fee by removing multiplication (#667) * fix stability fee by removing multiplication * lint cleanup --- src/containers/Analytics/index.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/containers/Analytics/index.tsx b/src/containers/Analytics/index.tsx index dd9fe306..b0f95a7c 100644 --- a/src/containers/Analytics/index.tsx +++ b/src/containers/Analytics/index.tsx @@ -11,7 +11,6 @@ import { AddressLink } from '~/components/AddressLink' import { contractsDescriptions } from '~/utils/contractsDescription' import { formatDataNumber, - multiplyRates, multiplyWad, transformToWadPercentage, transformToAnnualRate, @@ -299,13 +298,7 @@ const Analytics = () => { , formatDataNumber(value?.currentPrice?.toString() || '0', 18, 2, true), formatDataNumber(value?.nextPrice?.toString() || '0', 18, 2, true), - transformToAnnualRate( - multiplyRates( - value?.stabilityFee?.toString(), - analyticsData.redemptionRate?.toString() - ) || '0', - 27 - ), + transformToAnnualRate(value?.stabilityFee?.toString(), 27), formatDataNumber(value?.debtAmount?.toString() || '0', 18, 2, true, true), transformToWadPercentage(value?.debtAmount?.toString(), value?.debtCeiling?.toString()), formatDataNumber(value?.lockedAmount?.toString() || '0', 18, 2, false, true) + ' ' + key,