Skip to content

Commit

Permalink
Remove a few asset list cols
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Jan 19, 2024
1 parent ed1df8d commit 0c4156b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions centrifuge-app/src/components/Report/AssetList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Loan, Pool, Rate } from '@centrifuge/centrifuge-js'
import { Loan, Pool } from '@centrifuge/centrifuge-js'
import { Text } from '@centrifuge/fabric'
import * as React from 'react'
import { formatDate } from '../../utils/date'
Expand All @@ -22,9 +22,9 @@ const headers = [
'Maturity date',
'Interest rate',
'Advance rate',
'PD',
'LGD',
'Discount rate',
// 'PD',
// 'LGD',
// 'Discount rate',
]

const columns = headers.map((col, index) => ({
Expand Down Expand Up @@ -63,13 +63,13 @@ export function AssetList({ pool }: { pool: Pool }) {
formatDate(loan.pricing.maturityDate),
'interestRate' in loan.pricing ? formatPercentage(loan.pricing.interestRate.toPercent()) : '-',
'advanceRate' in loan.pricing ? formatPercentage(loan.pricing.advanceRate.toPercent()) : '-',
'probabilityOfDefault' in loan.pricing
? formatPercentage((loan.pricing.probabilityOfDefault as Rate).toPercent())
: '-',
'lossGivenDefault' in loan.pricing
? formatPercentage((loan.pricing.lossGivenDefault as Rate).toPercent())
: '-',
'discountRate' in loan.pricing ? formatPercentage((loan.pricing.discountRate as Rate).toPercent()) : '-',
// 'probabilityOfDefault' in loan.pricing
// ? formatPercentage((loan.pricing.probabilityOfDefault as Rate).toPercent())
// : '-',
// 'lossGivenDefault' in loan.pricing
// ? formatPercentage((loan.pricing.lossGivenDefault as Rate).toPercent())
// : '-',
// 'discountRate' in loan.pricing ? formatPercentage((loan.pricing.discountRate as Rate).toPercent()) : '-',
],
heading: false,
}))
Expand Down

0 comments on commit 0c4156b

Please sign in to comment.