diff --git a/components/asset/Header.tsx b/components/asset/Header.tsx index edbb66ef7..2893ea7ac 100644 --- a/components/asset/Header.tsx +++ b/components/asset/Header.tsx @@ -151,6 +151,11 @@ const AssetHeaderInfo: FC = ({ symbol }) => { [push, query, symbol], ); + const maxUtilization = useMemo(() => { + if (!marketAccount) return; + return Number(WEI_PER_ETHER - marketAccount.reserveFactor) / 1e18; + }, [marketAccount]); + return ( <> = ({ symbol }) => { ))} - {totalUtilization && totalUtilization > 0.9 && ( + {totalUtilization && maxUtilization && totalUtilization > maxUtilization && ( {t( - "The Global Utilization is above 90%, and the remaining liquidity is established as a Liquidity Reserve that can't be borrowed and is only available for withdrawals.", + "The Global Utilization is above {{maxUtilization}}, and the remaining liquidity is established as a Liquidity Reserve that can't be borrowed and is only available for withdrawals.", + { + maxUtilization: toPercentage(maxUtilization, 0), + }, )}