From a2345fd1da816ca4577d14321e0a1a9d175a4a73 Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Wed, 4 Dec 2024 14:33:51 -0800 Subject: [PATCH] Only count mana trades in league profit calculation fixes MAN-2105, fixes #3185 --- backend/scheduler/src/jobs/update-league.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/scheduler/src/jobs/update-league.ts b/backend/scheduler/src/jobs/update-league.ts index f0947ce64b..8990027a41 100644 --- a/backend/scheduler/src/jobs/update-league.ts +++ b/backend/scheduler/src/jobs/update-league.ts @@ -87,6 +87,7 @@ export async function updateLeague() { const contract = contractsById[contractId] if ( contract && + contract.token === 'MANA' && contract.visibility === 'public' && contract.isRanked !== false && !EXCLUDED_CONTRACT_SLUGS.has(contract.slug)