Skip to content

Commit 920a9e5

Browse files
committed
style: apply trunk formatting after rebase
1 parent b0825b2 commit 920a9e5

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

ui-dashboard/src/components/lp-concentration-chart.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ interface LpConcentrationChartProps {
2828

2929
export function resolvePieLabel(
3030
addr: string,
31-
getLabel?: ((address: string | null) => string) | ((address: string) => string),
31+
getLabel?:
32+
| ((address: string | null) => string)
33+
| ((address: string) => string),
3234
): string {
3335
const truncated = truncateAddress(addr) ?? addr;
3436
if (!getLabel) return truncated;
@@ -126,8 +128,11 @@ export function LpConcentrationChart({
126128
const totalPositions = positions.length;
127129
const topShare =
128130
positions.length > 0
129-
? (Number((positions[0].netLiquidity * BigInt(10_000)) / totalLiquidity) /
130-
100).toFixed(1)
131+
? (
132+
Number(
133+
(positions[0].netLiquidity * BigInt(10_000)) / totalLiquidity,
134+
) / 100
135+
).toFixed(1)
131136
: "0";
132137
const top3Share =
133138
positions.length > 0
@@ -197,8 +202,12 @@ export function LpConcentrationChart({
197202
<p className="text-[10px] uppercase tracking-wider text-slate-500 font-medium">
198203
Pool Reserves
199204
</p>
200-
{sym0 && <StatRow label={sym0} value={fmtReserve(reserves0Raw, sym0)} />}
201-
{sym1 && <StatRow label={sym1} value={fmtReserve(reserves1Raw, sym1)} />}
205+
{sym0 && (
206+
<StatRow label={sym0} value={fmtReserve(reserves0Raw, sym0)} />
207+
)}
208+
{sym1 && (
209+
<StatRow label={sym1} value={fmtReserve(reserves1Raw, sym1)} />
210+
)}
202211
{totalTvl !== null && (
203212
<StatRow label="Total TVL" value={fmtUsd(totalTvl)} highlight />
204213
)}

0 commit comments

Comments
 (0)