diff --git a/common/calculate.ts b/common/calculate.ts index b1adda99..407894b3 100644 --- a/common/calculate.ts +++ b/common/calculate.ts @@ -206,5 +206,5 @@ export function currentValue(contract: Contract, bet: Bet) { export const deductFees = (betAmount: number, winnings: number) => { return winnings > betAmount ? betAmount + (1 - FEES) * (winnings - betAmount) - : betAmount + : winnings }