From 4b2ae894e6cff8a6b7cbf98401a7f836d36a7b70 Mon Sep 17 00:00:00 2001 From: sophian Date: Tue, 5 Sep 2023 16:50:48 -0400 Subject: [PATCH] Base capacity on most junior trnache instead of senior --- centrifuge-app/src/pages/Pools.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centrifuge-app/src/pages/Pools.tsx b/centrifuge-app/src/pages/Pools.tsx index 81ce05b5ab..c8e830cb3d 100644 --- a/centrifuge-app/src/pages/Pools.tsx +++ b/centrifuge-app/src/pages/Pools.tsx @@ -104,7 +104,7 @@ function poolsToPoolCardProps( status: tinlakePool && tinlakePool.addresses.CLERK !== undefined && tinlakePool.tinlakeMetadata.maker?.ilk ? 'Maker Pool' - : pool.tranches.at(-1)?.capacity.toFloat() + : pool.tranches.at(0)?.capacity.toFloat() // pool is displayed as "open for investments" if the most junior tranche has a capacity ? 'Open for investments' : ('Closed' as PoolStatusKey), iconUri: metaData?.pool?.icon?.uri ? cent.metadata.parseMetadataUrl(metaData?.pool?.icon?.uri) : undefined,