diff --git a/apps/marginfi-v2-ui/public/blze.png b/apps/marginfi-v2-ui/public/blze.png new file mode 100644 index 0000000000..7addb3827d Binary files /dev/null and b/apps/marginfi-v2-ui/public/blze.png differ diff --git a/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx b/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx index d2c5ff5078..86e918b019 100644 --- a/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx +++ b/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx @@ -31,6 +31,22 @@ import { useWalletContext } from "~/components/useWalletContext"; const CLOSE_BALANCE_TOAST_ID = "close-balance"; const BORROW_OR_LEND_TOAST_ID = "borrow-or-lend"; +const EMISSION_MINT_INFO_MAP = new Map([ + [ + "UXD", + { + tokenSymbol: "UXP", + tokenLogoUri: "/uxp-icon-white.png", + }, + ], + [ + "bSOL", + { + tokenSymbol: "BLZE", + tokenLogoUri: "/blze.png", + }, + ], +]); const HtmlTooltip = styled(({ className, ...props }: TooltipProps) => ( @@ -394,7 +410,7 @@ const AssetRow: FC<{ }} >
- {bank.meta.tokenSymbol === "UXD" && isInLendingMode && ( + {bank.info.state.emissionsRate > 0 && EMISSION_MINT_INFO_MAP.get(bank.meta.tokenSymbol) !== undefined && isInLendingMode && (
{`${percentFormatter.format(bank.info.state.lendingRate)} Supply APY + ${percentFormatter.format( bank.info.state.emissionsRate - )} UXP rewards.`} + )} ${EMISSION_MINT_INFO_MAP.get(bank.meta.tokenSymbol)!.tokenSymbol} rewards.`}
Learn more. @@ -413,7 +429,13 @@ const AssetRow: FC<{ } placement="left" > - info + info
)} diff --git a/packages/marginfi-v2-ui-state/src/lib/points.ts b/packages/marginfi-v2-ui-state/src/lib/points.ts index 2a8adc9280..7794e12109 100644 --- a/packages/marginfi-v2-ui-state/src/lib/points.ts +++ b/packages/marginfi-v2-ui-state/src/lib/points.ts @@ -153,7 +153,7 @@ const getPointsDataForUser = async (wallet: string | undefined): Promise