Skip to content

Commit

Permalink
Base capacity on most junior trnache instead of senior
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Sep 5, 2023
1 parent 76b3955 commit 4b2ae89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Pools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4b2ae89

Please sign in to comment.