diff --git a/common/payouts.ts b/common/payouts.ts index 446b75d7..ab7f00af 100644 --- a/common/payouts.ts +++ b/common/payouts.ts @@ -138,8 +138,7 @@ export const getPayoutsMultiOutcome = ( const prob = resolutions[outcome] / probTotal const winnings = (shares / sharesByOutcome[outcome]) * prob * poolTotal const profit = winnings - amount - - const payout = amount + (1 - FEES) * Math.max(0, profit) + const payout = deductFees(amount, winnings) return { userId, profit, payout } })