From a6358e617d1f65f0363ed73ac0af835bccfd8659 Mon Sep 17 00:00:00 2001
From: jz - synthetix <52280438+jmzwar@users.noreply.github.com>
Date: Fri, 21 Jun 2024 17:12:38 +0700
Subject: [PATCH] Up to (#319)
* Up to
* address feedback
---
liquidity/ui/src/components/Pools/CollateralSection.tsx | 2 +-
liquidity/ui/src/components/Pools/PoolCards/PoolCard.tsx | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/liquidity/ui/src/components/Pools/CollateralSection.tsx b/liquidity/ui/src/components/Pools/CollateralSection.tsx
index 094f92270..5e0c16256 100644
--- a/liquidity/ui/src/components/Pools/CollateralSection.tsx
+++ b/liquidity/ui/src/components/Pools/CollateralSection.tsx
@@ -112,7 +112,7 @@ export const CollateralSectionUi: FC<{
) : (
- {`${!!apr ? apr.toFixed(2) : '-'}%`}
+ {`${!!apr ? `${network?.id === 42161 ? 'Up to ' : ''}${apr.toFixed(2)}` : '-'}%`}
)}
diff --git a/liquidity/ui/src/components/Pools/PoolCards/PoolCard.tsx b/liquidity/ui/src/components/Pools/PoolCards/PoolCard.tsx
index dd5e06c8f..23cdb66db 100644
--- a/liquidity/ui/src/components/Pools/PoolCards/PoolCard.tsx
+++ b/liquidity/ui/src/components/Pools/PoolCards/PoolCard.tsx
@@ -150,7 +150,11 @@ export const PoolCard = ({
APR
- {apr.combinedApr > 0 ? apr.combinedApr.toFixed(2)?.concat('%') : '-'}
+ {apr.combinedApr > 0
+ ? `${network.id === 42161 ? 'Up to ' : ''}${apr.combinedApr
+ .toFixed(2)
+ ?.concat('%')}`
+ : '-'}