diff --git a/inc/helpers/user-center-renderers/profile-revenue.php b/inc/helpers/user-center-renderers/profile-revenue.php index 44714a0b..60d12d03 100644 --- a/inc/helpers/user-center-renderers/profile-revenue.php +++ b/inc/helpers/user-center-renderers/profile-revenue.php @@ -27,16 +27,11 @@ if ($withdraw_on && class_exists('\AKSRT\Settings\Capabilities') && !\AKSRT\Sett $withdraw_on = false; } $withdraw_min = max(1, (float) ($withdrawal['min_amount'] ?? 50)); -$wallet_fmt = class_exists('\AKSRT\Credits\Balance') - ? \AKSRT\Credits\Balance::format((float) \AKSRT\Credits\Balance::balance($user_id)) - : '0.00'; $commission_stats = class_exists('\AKSRT\Payment\CommissionLedger') ? \AKSRT\Payment\CommissionLedger::get_instance()->overview($user_id) : ['total' => 0, 'pending' => 0, 'settled' => 0, 'wallet' => 0]; -$available_commission = class_exists('\AKSRT\Credits\Balance') - ? (float) \AKSRT\Credits\Balance::balance($user_id) - : (float) ($commission_stats['settled'] ?? 0); +$pending_commission = (float) ($commission_stats['pending'] ?? 0); $vip_ratios = []; $commission_ratio = class_exists('\AKSRT\Settings\Settings') ? (float) \AKSRT\Settings\Settings::affiliate_ratio_for_user($user_id) @@ -107,8 +102,8 @@ $status_labels = [
- ¥ - + ¥ +