Show volume label for DPM contracts too

This commit is contained in:
James Grugett 2022-03-23 00:23:40 -05:00
parent 69e142e279
commit 364c6ad8e5

View File

@ -39,10 +39,7 @@ export function contractMetrics(contract: Contract) {
? dayjs(resolutionTime).format('MMM D') ? dayjs(resolutionTime).format('MMM D')
: undefined : undefined
const volumeLabel = const volumeLabel = `${formatMoney(contract.volume)} volume`
contract.mechanism === 'dpm-2'
? `${formatMoney(truePool)} pool`
: `${formatMoney(contract.volume)} volume`
return { truePool, volumeLabel, createdDate, resolvedDate } return { truePool, volumeLabel, createdDate, resolvedDate }
} }