fees on estimated winnings

This commit is contained in:
mantikoros 2022-01-11 20:38:19 -06:00
parent f4cabf17cb
commit c8513eda83

View File

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