Show volume label for DPM contracts too
This commit is contained in:
		
							parent
							
								
									69e142e279
								
							
						
					
					
						commit
						364c6ad8e5
					
				|  | @ -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 } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user