File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortForm Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { PrimaryStat } from "src/ui/base/components/PrimaryStat";
2121import { formatBalance } from "src/ui/base/formatting/formatBalance" ;
2222import { useNumericInput } from "src/ui/base/hooks/useNumericInput" ;
2323import { TransactionView } from "src/ui/hyperdrive/TransactionView" ;
24+ import { useIsNewPool } from "src/ui/hyperdrive/hooks/useIsNewPool" ;
2425import { usePoolInfo } from "src/ui/hyperdrive/hooks/usePoolInfo" ;
2526import { useCurrentLongPrice } from "src/ui/hyperdrive/longs/hooks/useCurrentLongPrice" ;
2627import { OpenShortPreview } from "src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview" ;
@@ -66,6 +67,7 @@ export function OpenShortForm({
6667 chainId : hyperdrive . chainId ,
6768 hyperdriveAddress : hyperdrive . address ,
6869 } ) ;
70+ const isNewPool = useIsNewPool ( { hyperdrive } ) ;
6971 const { balance : baseTokenBalance } = useTokenBalance ( {
7072 account,
7173 tokenAddress : baseToken . address ,
@@ -399,7 +401,7 @@ export function OpenShortForm({
399401 vaultRateStatus === "success" && vaultRate ? (
400402 < >
401403 { appConfig . yieldSources [ hyperdrive . yieldSource ] . shortName } @{ " " }
402- { vaultRate . formatted || 0 } APY
404+ { isNewPool ? "✨New✨" : ` ${ vaultRate . formatted } APY` }
403405 </ >
404406 ) : (
405407 < Skeleton className = "w-42 h-8" />
You can’t perform that action at this time.
0 commit comments