Skip to content

Commit

Permalink
fix: page title + format veMento amount
Browse files Browse the repository at this point in the history
  • Loading branch information
denviljclarke committed Oct 28, 2024
1 parent 8fffa0b commit 25b0fb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/voting-power/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Page = () => {
<main className="flex flex-col place-items-center gap-14">
<div className="flex w-full flex-col gap-4 text-center md:gap-6">
<h2 className="mb-4 mt-[56px] text-[22px]/none font-medium md:text-[32px]/none">
Your existing veMENTO lock
Your voting power
</h2>
<LocksList />
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/components/locks-list/locks-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
import { useLockInfo } from "@/lib/hooks/useLockInfo";
import { RelockForm } from "./locks-relock-form/relock-form.component";
import useTokens from "@/lib/contracts/useTokens";
import { formatUnits, parseUnits } from "viem";
import NumbersService from "@/lib/helpers/numbers.service";

export const LocksList = () => {
const { address } = useAccount();
Expand Down Expand Up @@ -47,7 +49,9 @@ export const LocksList = () => {
return (
<LockInfo
unlockedMento={unlockedMento}
lockedBalance={veMentoBalance.formatted}
lockedBalance={Number(
formatUnits(veMentoBalance.value, 18),
).toLocaleString()}
expirationDate={parsedExpirationDate}
>
<LockInfoActions>
Expand Down

0 comments on commit 25b0fb6

Please sign in to comment.