market stats: pool

This commit is contained in:
mantikoros 2022-04-09 18:23:24 -05:00
parent 2d8e85ab5e
commit 5bf36d1963

View File

@ -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>