From 83153b96efc1fbb4cc4ba62deb90509057a7bd15 Mon Sep 17 00:00:00 2001 From: sebipap Date: Tue, 19 Mar 2024 17:10:36 -0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=9A=B8=20AssetHeader:=20get=20maxUtil?= =?UTF-8?q?ization=20from=20Previewer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/asset/Header.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/asset/Header.tsx b/components/asset/Header.tsx index edbb66ef7..3e4f052ad 100644 --- a/components/asset/Header.tsx +++ b/components/asset/Header.tsx @@ -151,6 +151,11 @@ const AssetHeaderInfo: FC = ({ symbol }) => { [push, query, symbol], ); + const borrowableUtilization = useMemo(() => { + if (!marketAccount) return; + return Number(WEI_PER_ETHER - marketAccount.reserveFactor) / 1e18; + }, [marketAccount]); + return ( <> = ({ symbol }) => { ))} - {totalUtilization && totalUtilization > 0.9 && ( + {totalUtilization && borrowableUtilization && totalUtilization > borrowableUtilization && ( {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 {{borrowableUtilization}}, and the remaining liquidity is established as a Liquidity Reserve that can't be borrowed and is only available for withdrawals.", + { + borrowableUtilization: toPercentage(borrowableUtilization, 0), + }, )} From 56b9f92f0f9a084dd91d4551aecc230ce4007b61 Mon Sep 17 00:00:00 2001 From: sebipap Date: Tue, 19 Mar 2024 17:17:39 -0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8C=90=20add=20translations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i18n/es/translation.json | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/i18n/es/translation.json b/i18n/es/translation.json index d113ea1d2..128f47c1e 100644 --- a/i18n/es/translation.json +++ b/i18n/es/translation.json @@ -25,17 +25,8 @@ "3M": "3M", "Historical Variable Rates": "Tasas Variables Históricas", "Show utilization": "Ver utilización", - "Compare with other yield curves": "Comparar con otras curvas de rendimiento", "Loading data...": "Cargando...", - "ZOOM IN": "AMPLIAR", - "ZOOM OUT": "REDUCIR", - "Utilization Rate (Variable Rate Pool)": "Tasa de Utilización (Pool de Tasa Variable)", "Utilization Rates (Fixed Rate Pools)": "Tasas de Utilización (Pools de Tasa Fija)", - "Utilization": "Utilización", - "DEPOSIT APR": "TNA DEPÓSITO", - "BORROW APR": "TNA PRÉSTAMO", - "Current Yield Curves": "Curvas de Rendimiento Actuales", - "Current Utilization": "Utilización Actual", "Late repayment will result in a penalty daily rate of {{penaltyRate}}": "El retraso en el pago resultará en una tasa de penalización diaria de {{penaltyRate}}", "Completed": "Completado", "{{daysLeft}} left": "{{daysLeft}} restantes", @@ -621,6 +612,10 @@ "The upgrade to the new Interest Rate Model (EXAIP-08) is scheduled for execution today at 8:30 PM UTC": "La actualización al nuevo Modelo de Tasa de Interés (EXAIP-08) está programada para ejecutarse hoy a las 8:30 PM UTC", "Available for Withdrawal": "Disponible para Retiro", "Global Utilization": "Utilización Global", - "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.": "La Utilización Global está por encima del 90%, y la liquidez restante se establece como una Reserva de Liquidez que no se puede pedir prestada y solo está disponible para retiros.", - "Total esEXA Vesting": "esEXA Total en Vesting" + "Total esEXA Vesting": "esEXA Total en Vesting", + "The Global Utilization is above {{borrowableUtilization}}, and the remaining liquidity is established as a Liquidity Reserve that can't be borrowed and is only available for withdrawals.": "La Utilización Global está por encima del {{borrowableUtilization}}, y la liquidez restante se establece como una Reserva de Liquidez que no se puede pedir prestada y solo está disponible para retiros.", + "Term Structure of Interest Rates": "Estructura de Plazos de Tasas de Interés", + "Rate": "Tasa", + "Min": "Mín", + "Variable APR, Utilization and Global Utilization": "TNA Variable, Utilización y Utilización Global" }