deductFees
This commit is contained in:
parent
e31e97219d
commit
54a1c05b74
|
@ -206,5 +206,5 @@ export function currentValue(contract: Contract, bet: Bet) {
|
||||||
export const deductFees = (betAmount: number, winnings: number) => {
|
export const deductFees = (betAmount: number, winnings: number) => {
|
||||||
return winnings > betAmount
|
return winnings > betAmount
|
||||||
? betAmount + (1 - FEES) * (winnings - betAmount)
|
? betAmount + (1 - FEES) * (winnings - betAmount)
|
||||||
: betAmount
|
: winnings
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user