Skip to content

Commit

Permalink
Remove maturity date from nav management asset table (#2354)
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy authored Aug 8, 2024
1 parent a3cb6f1 commit 642edf4
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { DataCol, DataRow, DataTable } from '../../components/DataTable'
import { LayoutSection } from '../../components/LayoutBase/LayoutSection'
import { AssetName } from '../../components/LoanList'
import { RouterTextLink } from '../../components/TextLink'
import { formatDate } from '../../utils/date'
import { formatBalance } from '../../utils/formatting'
import { useLiquidity } from '../../utils/useLiquidity'
import { useSuitableAccounts } from '../../utils/usePermissions'
Expand All @@ -41,7 +40,6 @@ type FormValues = {
value: number | ''
isin: string
quantity: number
maturity: string
currentPrice: number
withLinearPricing: boolean
}[]
Expand Down Expand Up @@ -84,7 +82,6 @@ export function NavManagementAssetTable({ poolId }: { poolId: string }) {
currentPrice: 0,
value: pool.reserve.total.toFloat(),
formIndex: -1,
maturity: '',
oldValue: '',
},
]
Expand Down Expand Up @@ -151,7 +148,6 @@ export function NavManagementAssetTable({ poolId }: { poolId: string }) {
value: l.status === 'Active' ? l?.currentPrice.toDecimal().toNumber() : 0,
isin: 'isin' in l.pricing.priceId ? l.pricing.priceId.isin : '',
quantity: l.pricing.outstandingQuantity.toFloat(),
maturity: formatDate(l.pricing?.maturityDate ?? ''),
withLinearPricing: l.pricing.withLinearPricing,
currentPrice: l.status === 'Active' ? l?.currentPrice.toDecimal().toNumber() : 0,
}
Expand Down Expand Up @@ -227,11 +223,6 @@ export function NavManagementAssetTable({ poolId }: { poolId: string }) {
</Shelf>
),
},
{
align: 'left',
header: 'Maturity date',
cell: (row: Row) => ('oldValue' in row ? row.maturity : ''),
},
{
align: 'left',
header: 'Linear pricing',
Expand Down

0 comments on commit 642edf4

Please sign in to comment.