Skip to content

Commit

Permalink
update api data
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSilva committed May 22, 2024
1 parent adefd71 commit db3a625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web-app/app/api/sale/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { saleDetails } from '@/app/_server/sales';
import { formatEther } from 'viem';
import { formatEther, formatUnits } from 'viem';

declare global {
interface BigInt {
Expand All @@ -26,8 +26,8 @@ export async function GET(_request: Request) {
return {
...project,
status: 'Starting Soon',
minTarget: formatEther(project.minTarget),
maxTarget: formatEther(project.maxTarget),
minTarget: formatUnits(project.minTarget, 6),
maxTarget: formatUnits(project.maxTarget, 6),
};
});

Expand Down

0 comments on commit db3a625

Please sign in to comment.