Skip to content

Commit 63f88d9

Browse files
committed
fix: popularity score overflow
1 parent ccdee39 commit 63f88d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/helpers/spaces.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ function getPopularity(space: Metadata): number {
6262
const hasActiveProposals = space.counts.activeProposals > 0;
6363

6464
if (isTurbo && hasActiveProposals) {
65-
popularity += 5e20;
65+
popularity += 5e10;
6666
} else if (isVerified && hasActiveProposals) {
67-
popularity += 4e20;
67+
popularity += 4e10;
6868
} else if (isTurbo) {
69-
popularity += 3e20;
69+
popularity += 3e10;
7070
} else if (isVerified) {
71-
popularity += 2e20;
71+
popularity += 2e10;
7272
} else if (hasActiveProposals) {
73-
popularity += 1e20;
73+
popularity += 1e10;
7474
}
7575

7676
return popularity;

0 commit comments

Comments
 (0)