From 54a1c05b74e9675c387e69644e72e4279a5eb9f3 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Fri, 11 Feb 2022 01:52:26 -0600 Subject: [PATCH] deductFees --- common/calculate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }