From 5bf36d1963845d6944274f7ab5c2e63d03f07aea Mon Sep 17 00:00:00 2001 From: mantikoros Date: Sat, 9 Apr 2022 18:23:24 -0500 Subject: [PATCH] market stats: pool --- web/components/contract/contract-info-dialog.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/components/contract/contract-info-dialog.tsx b/web/components/contract/contract-info-dialog.tsx index 82c68f82..cb7b37b8 100644 --- a/web/components/contract/contract-info-dialog.tsx +++ b/web/components/contract/contract-info-dialog.tsx @@ -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 }) { {formatMoney(contract.totalLiquidity)} )} + + {contract.mechanism === 'dpm-2' && ( + + Pool + {formatMoney(_.sum(Object.values(contract.pool)))} + + )}