Skip to content

Commit

Permalink
SOV-3813: Fix rounding issue on the dashboard (#906)
Browse files Browse the repository at this point in the history
* chore: fix rounding issue

* Create eleven-mangos-suffer.md
  • Loading branch information
pietro-maximoff authored May 15, 2024
1 parent cf0db3b commit 44807e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eleven-mangos-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frontend": patch
---

SOV-3813: Fix rounding issue on the dashboard
2 changes: 1 addition & 1 deletion apps/frontend/src/app/2_molecules/LOCStatus/LOCStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const LOCStatus: FC<LOCStatusProps> = ({
const hasWithdrawalSurplus = withdrawalSurplus.gt(0);
const showOpenLOC = !hasWithdrawalSurplus && collateral.gt(0);

const ratio = useMemo(() => cRatio.toNumber(), [cRatio]);
const ratio = useMemo(() => parseInt(cRatio.toString()), [cRatio]);

return (
<div
Expand Down

0 comments on commit 44807e7

Please sign in to comment.