Fix: Calculate total_payout from actual win amounts instead of redistributed amounts
- Fix _calculate_summary() to sum win_amount from bet details where result is 'won' - Previously used total_redistributed which is amount redistributed to players, not payout to winners - This fixes total_payout showing as 0 when there are winning bets - Net profit calculation now works correctly
Showing
Please
register
or
sign in
to comment