When sorting by creator or tag, use 7 day volume instead of pool size.

This commit is contained in:
jahooma 2022-01-09 15:32:04 -06:00
parent cedd8df45c
commit e655462a2f

View File

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