Skip to content

Commit e0008bc

Browse files
committed
color net short rate red/green
1 parent d805c19 commit e0008bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ export function OpenShortPreview({
124124
"daisy-tooltip daisy-tooltip-top daisy-tooltip-left cursor-help before:border",
125125
{
126126
"border-b border-dashed border-current": spotRateAfterOpen,
127+
"text-success": shortApr && shortApr.apr > 0n,
128+
"text-error": shortApr && shortApr.apr < 0n,
127129
},
128130
)}
129131
data-tip="The annualized return on shorts assuming the current yield source rate stays the same for one year"

0 commit comments

Comments
 (0)