deductFees

This commit is contained in:
mantikoros 2022-02-11 01:52:26 -06:00
parent e31e97219d
commit 54a1c05b74

View File

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