import React from 'react'; import {Button, Card, CardContent, Grid, Paper, Typography} from '@material-ui/core'; import TokenSymbol from '../TokenSymbol'; import {roundAndFormatNumber} from '../../0x'; interface LPInfoCardProps { name: string; poolAddress?: string; price: number; token1Value: number; token1Name: string; token2Value: number; token2Name: string; circulatingSupply: number; totalSupply: number; } const LPInfoCard: React.FC = ({ name, poolAddress, price, token1Value, token1Name, token2Value, token2Name, circulatingSupply, totalSupply, }) => { return ( {token1Name}-{token2Name} LP Price ${price ? price : '-.----'} Ratio {token1Value} {token1Name} / {token2Value} {token2Name} {/* Market Cap ${roundAndFormatNumber(circulatingSupply * price, 0)} */} Liquidity ${roundAndFormatNumber(circulatingSupply, 2)} Total Supply {roundAndFormatNumber(totalSupply, 2)} ); }; export default LPInfoCard;