market stats: pool
This commit is contained in:
parent
2d8e85ab5e
commit
5bf36d1963
|
@ -1,6 +1,7 @@
|
|||
import { DotsHorizontalIcon } from '@heroicons/react/outline'
|
||||
import clsx from 'clsx'
|
||||
import dayjs from 'dayjs'
|
||||
import _ from 'lodash'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { Contract } from '../../../common/contract'
|
||||
|
@ -86,6 +87,13 @@ export function ContractInfoDialog(props: { contract: Contract }) {
|
|||
<td>{formatMoney(contract.totalLiquidity)}</td>
|
||||
</tr>
|
||||
)}
|
||||
|
||||
{contract.mechanism === 'dpm-2' && (
|
||||
<tr>
|
||||
<td>Pool</td>
|
||||
<td>{formatMoney(_.sum(Object.values(contract.pool)))}</td>
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user