From c8513eda83ae3d97c641bc4dc487cf13259389e3 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Tue, 11 Jan 2022 20:38:19 -0600 Subject: [PATCH] fees on estimated winnings --- common/calculate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/calculate.ts b/common/calculate.ts index ef81fd72..398039dd 100644 --- a/common/calculate.ts +++ b/common/calculate.ts @@ -49,7 +49,7 @@ export function calculateEstimatedWinnings( const estPool = Math.sqrt(yesShares ** 2 + noShares ** 2) const total = ind * yesShares + (1 - ind) * noShares - return (shares * estPool) / total + return ((1 - FEES) * (shares * estPool)) / total } export function calculateRawShareValue(