From e655462a2f3fe0485d0e698b838edfa6d2b81945 Mon Sep 17 00:00:00 2001 From: jahooma Date: Sun, 9 Jan 2022 15:32:04 -0600 Subject: [PATCH] When sorting by creator or tag, use 7 day volume instead of pool size. --- web/components/contracts-list.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/contracts-list.tsx b/web/components/contracts-list.tsx index 3c8913b6..66cfd3f7 100644 --- a/web/components/contracts-list.tsx +++ b/web/components/contracts-list.tsx @@ -57,7 +57,7 @@ function CreatorContractsGrid(props: { contracts: Contract[] }) { const byCreator = _.groupBy(contracts, (contract) => contract.creatorId) const creatorIds = _.sortBy(Object.keys(byCreator), (creatorId) => - _.sumBy(byCreator[creatorId], (contract) => -1 * compute(contract).truePool) + _.sumBy(byCreator[creatorId], (contract) => -1 * contract.volume7Days) ) return ( @@ -114,7 +114,7 @@ function TagContractsGrid(props: { contracts: Contract[] }) { contractTags.map(({ contract }) => contract) ) const tags = _.sortBy(Object.keys(byTag), (tag) => - _.sumBy(byTag[tag], (contract) => -1 * compute(contract).truePool) + _.sumBy(byTag[tag], (contract) => -1 * contract.volume7Days) ) return (