From 8b04f8581311af4299260be3c384be8ce2878955 Mon Sep 17 00:00:00 2001 From: jz - synthetix <52280438+jmzwar@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:47:40 +1100 Subject: [PATCH] Chore/april 4 fixes 2 (#218) * update onboard * block number shennanigans * apy to apr * switch network order * dont show zero --------- Co-authored-by: jmzwar --- liquidity/components/Pools/PoolCard.tsx | 2 +- liquidity/components/Pools/PoolsList.tsx | 2 +- liquidity/components/Pools/VaultRow.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/liquidity/components/Pools/PoolCard.tsx b/liquidity/components/Pools/PoolCard.tsx index db7a52eb8..72d688d40 100644 --- a/liquidity/components/Pools/PoolCard.tsx +++ b/liquidity/components/Pools/PoolCard.tsx @@ -12,7 +12,7 @@ interface PoolcardProps { pool: PoolType; collateralTypes?: CollateralType[]; liquidityPositionsById?: LiquidityPositionsById; - apr: number; + apr?: number; } export const PoolCard = ({ pool, collateralTypes, liquidityPositionsById, apr }: PoolcardProps) => { diff --git a/liquidity/components/Pools/PoolsList.tsx b/liquidity/components/Pools/PoolsList.tsx index 2405d7e81..e152242f5 100644 --- a/liquidity/components/Pools/PoolsList.tsx +++ b/liquidity/components/Pools/PoolsList.tsx @@ -7,7 +7,7 @@ interface PoolsListProps { pools?: PoolType[]; collateralTypes?: CollateralType[]; liquidityPositionsById?: LiquidityPositionsById; - apr: number; + apr?: number; isLoading: boolean; } diff --git a/liquidity/components/Pools/VaultRow.tsx b/liquidity/components/Pools/VaultRow.tsx index bb94d5470..e5577f403 100644 --- a/liquidity/components/Pools/VaultRow.tsx +++ b/liquidity/components/Pools/VaultRow.tsx @@ -86,7 +86,7 @@ function VaultRowUi({ ) : ( - {apr?.toFixed(2)}% + {apr?.toFixed(2) || '-'}% )} @@ -132,7 +132,7 @@ export type VaultRowProps = { collateralType: CollateralType; poolId: string; liquidityPosition?: LiquidityPositionType; - apr: number; + apr?: number; }; export const VaultRow: FC = ({ collateralType, poolId, liquidityPosition, apr }) => {