Skip to content

Commit eb27b58

Browse files
authored
Fix double percents (#1443)
1 parent e51abde commit eb27b58

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/hyperdrive-trading/src/ui/hyperdrive/lp/AddLiquidityForm/AddLiquidityForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export function AddLiquidityForm({
360360
isNewPool || lpApy === undefined ? (
361361
<div className="flex gap-2">✨New✨</div>
362362
) : (
363-
`${lpApy.formatted === "-0.00" ? "0.00" : lpApy.formatted}%`
363+
`${lpApy.formatted === "-0.00" ? "0.00" : lpApy.formatted}`
364364
)
365365
}
366366
tooltipContent="The annual percentage yield projection for providing liquidity."

apps/hyperdrive-trading/src/ui/markets/MarketStats/YieldStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function YieldStats({
6868
) : (
6969
`${
7070
lpApy.formatted === "-0.00" ? "0.00" : lpApy.formatted
71-
}%`
71+
}`
7272
)}{" "}
7373
</span>
7474
) : (

apps/hyperdrive-trading/src/ui/markets/PoolRow/PoolRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function PoolRow({
215215
chainId={hyperdrive.chainId}
216216
hyperdriveAddress={hyperdrive.address}
217217
>
218-
<PercentLabel value={`${lpApy.formatted}`} />
218+
<PercentLabel value={formatRate(lpApy.lpApy, 18, false)} />
219219
</RewardsTooltip>
220220
) : (
221221
"-"

0 commit comments

Comments
 (0)