diff --git a/src/components/SafeOperations/SafeBody.tsx b/src/components/SafeOperations/SafeBody.tsx index c3d5d216..67973a42 100644 --- a/src/components/SafeOperations/SafeBody.tsx +++ b/src/components/SafeOperations/SafeBody.tsx @@ -181,7 +181,10 @@ const SafeBody = ({ isChecked }: Props) => { accumulatedRate ) - const liquidationPenaltyPercentage = getRatePercentage(liquidationPenalty) + const liquidationPenaltyPercentage = getRatePercentage( + liquidationPenalty, + 0 + ) const liquidationPrice = getLiquidationPrice( totalCollateral, totalDebt, diff --git a/src/utils/helper.ts b/src/utils/helper.ts index afda0481..7e25b305 100644 --- a/src/utils/helper.ts +++ b/src/utils/helper.ts @@ -59,7 +59,7 @@ export const formatNumber = (value: string, digits = 4, round = false) => { if (!value) { return '0' } - const n = Number(value.slice(0, 6)) + const n = Number(value) if (Number.isInteger(n) || value.length < 5) { return n }