-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: tooltip for info bowl, new banner (#239)
- Loading branch information
1 parent
f3f3b9a
commit 519ea73
Showing
8 changed files
with
134 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import BigNumber from 'bignumber.js'; | ||
import { Line } from '../Line'; | ||
|
||
type NetBorrowTooltipProps = { | ||
aprData: | ||
| { | ||
supplyBaseApr: BigNumber; | ||
borrowBaseApr: BigNumber; | ||
supplyRewardApr: BigNumber; | ||
borrowRewardApr: BigNumber; | ||
netSupplyApr: BigNumber; | ||
netBorrowApr: BigNumber; | ||
} | ||
| undefined; | ||
}; | ||
|
||
export const NetBorrowTooltip = ({ aprData }: NetBorrowTooltipProps) => { | ||
return ( | ||
<div className="min-w-[200px] p-2"> | ||
<div className="flex justify-center font-semibold text-white text-lg"> | ||
Net Borrow APY | ||
</div> | ||
<div className="mt-4 flex flex-col font-normal"> | ||
<div className="flex justify-between text-md"> | ||
<div>Borrow APY</div> | ||
<div>{aprData?.borrowBaseApr.times(100).toFixed(2)}%</div> | ||
</div> | ||
<div className="flex justify-between text-md pb-2"> | ||
<div className="flex flex-col gap-y-1"> | ||
<div>Reward APY</div> | ||
<div className="text-xs italic text-moon">Distributed in $FUEL</div> | ||
</div> | ||
<div>- {aprData?.borrowRewardApr.times(100).toFixed(2)}%</div> | ||
</div> | ||
</div> | ||
<Line /> | ||
<div className="flex justify-between text-md font-normal pt-1"> | ||
<div>Net Borrow APY</div> | ||
<div>{aprData?.netBorrowApr.times(100).toFixed(2)}%</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.