Skip to content

Commit 4ae5da0

Browse files
committed
usdt in correct units
1 parent cd688fc commit 4ae5da0

File tree

1 file changed

+2
-1
lines changed
  • apps/nextjs/app/[lang]/[pathPrefix]

1 file changed

+2
-1
lines changed

apps/nextjs/app/[lang]/[pathPrefix]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import remarkParse from 'remark-parse'
1515
import remarkRehype from 'remark-rehype'
1616
import rehypeStringify from 'rehype-stringify'
1717
import { unified } from 'unified'
18+
import { formatUnits } from 'viem'
1819

1920
type PageProps = {
2021
params: Promise<{
@@ -124,7 +125,7 @@ export default function Page({ params }: PageProps) {
124125
{amountScholarship !== null && (
125126
<div className="text-sm text-gray-600 font-medium">
126127
{lang === 'es' ? 'Total en USDT ganado: ' : 'Total USDT earned: '}
127-
${amountScholarship.toFixed(2)} USDT
128+
${formatUnits(BigInt(amountScholarship), 6)} USDT
128129
</div>
129130
)}
130131
</div>

0 commit comments

Comments
 (0)