Fix bug in which new users are flagged as unreliable
This commit is contained in:
parent
70b2b14f80
commit
4fd0e5caad
|
@ -181,7 +181,7 @@ export async function updateMetricsCore() {
|
|||
const badResolutions = contractRatios.filter(
|
||||
(ratio) => ratio > BAD_RESOLUTION_THRESHOLD
|
||||
)
|
||||
let newFractionResolvedCorrectly = 0
|
||||
let newFractionResolvedCorrectly = 1
|
||||
if (userContracts.length > 0) {
|
||||
newFractionResolvedCorrectly =
|
||||
(userContracts.length - badResolutions.length) / userContracts.length
|
||||
|
|
Loading…
Reference in New Issue
Block a user