Skip to content

Commit

Permalink
Update maker pool to closed (#2299)
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy authored Jul 19, 2024
1 parent 5258446 commit 1cac515
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions centrifuge-app/src/components/PoolCard/PoolStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { StatusChip, StatusChipProps } from '@centrifuge/fabric'

export type PoolStatusKey = 'Maker Pool' | 'Open for investments' | 'Closed' | 'Upcoming' | 'Archived'
export type PoolStatusKey = 'Open for investments' | 'Closed' | 'Upcoming' | 'Archived'

const statusColor: { [key in PoolStatusKey]: StatusChipProps['status'] } = {
'Maker Pool': 'info',
'Open for investments': 'ok',
Closed: 'default',
Upcoming: 'default',
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/PoolFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type PoolFilterProps = {
pools?: PoolCardProps[]
}

const defaultPoolStatus: PoolStatusKey[] = ['Open for investments', 'Upcoming', 'Maker Pool', 'Closed']
const defaultPoolStatus: PoolStatusKey[] = ['Open for investments', 'Upcoming', 'Closed']

export function PoolFilter({ pools }: PoolFilterProps) {
const isMedium = useIsAboveBreakpoint('M')
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/PoolList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function poolsToPoolCardProps(
tinlakePool && tinlakePool.tinlakeMetadata.isArchived
? 'Archived'
: tinlakePool && tinlakePool.addresses.CLERK !== undefined && tinlakePool.tinlakeMetadata.maker?.ilk
? 'Maker Pool'
? 'Closed'
: 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),
Expand Down

0 comments on commit 1cac515

Please sign in to comment.