Skip to content

Commit

Permalink
remove net apr tooltip changes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xshiba1 committed May 11, 2024
1 parent cdf37a6 commit 6f0d9f3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 27 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"next-themes": "^0.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-latex-next": "^3.0.0",
"react-merge-refs": "^2.1.1",
"react-responsive": "^10.0.0",
"recharts": "^2.12.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
DEPOSITS_TOOLTIP,
EQUITY_TOOLTIP,
LIQUIDATION_THRESHOLD_TOOLTIP,
NET_APR_TOOLTIP,
WEIGHTED_BORROWS_TOOLTIP,
} from "@/lib/tooltips";

Expand Down Expand Up @@ -106,13 +105,6 @@ function AccountPositionCardContent() {

<div className="flex flex-row items-center justify-between gap-2">
<LabelWithTooltip
tooltip={NET_APR_TOOLTIP}
tooltipContentProps={{
style: {
maxWidth:
"min(var(--radix-tooltip-content-available-width), 360px)",
},
}}
>
Net APR
</LabelWithTooltip>
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/lib/tooltips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@ export const EQUITY_TOOLTIP = (
</>
);

export const NET_APR_TOOLTIP = (
<>
If your account is worth $X, assuming no prices or rates change, in 1 year
it will be worth $X * (1 + Net APR).
<br />
<br />
<span className="font-mono text-muted-foreground">
Formula:
<br />
<Latex>
{
"$$\\frac{\\sum_{Deposits} d_{USD,i} \\times d_{APR,i} - \\sum_{Borrows} b_{USD,i} \\times b_{APR,i}}{d_{USD} - b_{USD}}$$"
}
</Latex>
</span>
</>
);

export const WEIGHTED_BORROWS_TOOLTIP = (
<>
Your weighted borrows is the value of all assets borrowed, adjusted by their
Expand Down

0 comments on commit 6f0d9f3

Please sign in to comment.