diff --git a/apps/liquidity-provision-dashboard/src/app/components/dashboard/market-list/market-list.tsx b/apps/liquidity-provision-dashboard/src/app/components/dashboard/market-list/market-list.tsx index 9b8565580..9ed4581b2 100644 --- a/apps/liquidity-provision-dashboard/src/app/components/dashboard/market-list/market-list.tsx +++ b/apps/liquidity-provision-dashboard/src/app/components/dashboard/market-list/market-list.tsx @@ -10,6 +10,7 @@ import { formatNumberPercentage, t, toBigNum, + getDateTimeFormat, } from '@vegaprotocol/react-helpers'; import type { VegaValueFormatterParams } from '@vegaprotocol/ui-toolkit'; import type * as Schema from '@vegaprotocol/types'; @@ -296,6 +297,21 @@ export const MarketList = () => { return value ? formatDistanceToNow(new Date(value)) : '-'; }} /> + ) => { + return value + ? getDateTimeFormat().format(new Date(value).getTime()) + : '-'; + }} + /> { return markets.map((market) => { const dayVolume = calcDayVolume(market.candles); @@ -76,6 +80,9 @@ export const addData = ( marketsLiquidity ) as Provider[]; + const proposalForMarket = + proposals && proposals.find((p) => p.id === market.id); + return { ...market, dayVolume, @@ -83,6 +90,7 @@ export const addData = ( liquidityCommitted: sumLiquidityCommitted(liquidityProviders), feeLevels: getFeeLevels(liquidityProviders) || [], target: getTargetStake(market.id, marketsLiquidity), + proposal: proposalForMarket, }; }); }; @@ -106,12 +114,14 @@ const liquidityProvisionProvider = makeDerivedDataProvider( interval: Schema.Interval.INTERVAL_I1D, }), liquidityMarketsProvider, + proposalsListDataProvider, ], (parts) => { const data = addData( parts[0] as (MarketWithData & MarketWithCandles)[], parts[1] as MarketCandles[], - parts[2] as LiquidityProvisionMarket[] + parts[2] as LiquidityProvisionMarket[], + parts[3] as Proposal[] ); return { markets: data }; }