Skip to content

Commit

Permalink
hotfix: remove max
Browse files Browse the repository at this point in the history
  • Loading branch information
luistorres committed May 3, 2024
1 parent 51e6579 commit 5b8519c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export const Arbitrum = () => (
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g clip-path="url(#clip0_5335_33274)">
<g clipPath="url(#clip0_5335_33274)">
<path
d="M5.24414 17.0227V38.9769C5.24414 40.3786 5.99369 41.6746 7.20769 42.3732L26.2316 53.3526C27.4456 54.0512 28.9401 54.0512 30.1541 53.3526L49.178 42.3732C50.392 41.6746 51.1416 40.3786 51.1416 38.9769V17.0227C51.1416 15.621 50.392 14.3249 49.178 13.6264L30.1541 2.64697C28.9401 1.94841 27.4456 1.94841 26.2316 2.64697L7.20309 13.6264C5.98909 14.3249 5.24414 15.621 5.24414 17.0227Z"
fill="#213147"
Expand Down
13 changes: 3 additions & 10 deletions packages/web-app/app/_ui/projects/project-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { usdValue } from '../utils/intl-formaters/usd-value';
import { usdRange } from '../utils/intl-formaters/usd-range';
import { shortDateRange } from '../utils/intl-formaters/date-range';
import { formatEther, parseEther } from 'viem/utils';
import { useCtzndMinContributionUsdc } from '@/app/_lib/queries';

const Upcoming = ({
minTarget,
Expand Down Expand Up @@ -49,17 +50,13 @@ const Upcoming = ({
const FullData = ({
minTarget,
maxTarget,
minContribution,
maxContribution,
totalTokensForSale,
}: TProjectSaleDetails) => {
const targetedRaise = usdRange(
BigInt(formatEther(minTarget)),
BigInt(formatEther(maxTarget)),
);
const maxPrice = usdValue(maxContribution);
const minPrice = usdValue(minContribution);

const minPrice = useCtzndMinContributionUsdc();
const totalTokens = new Intl.NumberFormat('default').format(
BigInt(formatEther(totalTokensForSale)),
);
Expand All @@ -70,13 +67,9 @@ const FullData = ({
<span className="text-mono-400">Targeted Raise</span>
<span>{targetedRaise}</span>
</li>
<li className="flex flex-col justify-between gap-3 md:flex-row">
<span className="text-mono-400">Max. price per token</span>
<span>{maxPrice}</span>
</li>
<li className="flex flex-col justify-between gap-3 md:flex-row">
<span className="text-mono-400">Min. price per token</span>
<span>{minPrice}</span>
<span>{usdValue(minPrice)}</span>
</li>
<li className="flex flex-col justify-between gap-3 md:flex-row">
<span className="text-mono-400"># of tokens distributed</span>
Expand Down

0 comments on commit 5b8519c

Please sign in to comment.