Balance;
$update_bal = update_user_balance($assetType, $balance, $investor_id);
if (!$update_bal) {
redirect_to("rm_root.php?msg=Failed to update balance!");
return false;
} else if($update_bal) {
// Record this change
$OrderClass->record_root_bal_update($investor_id, $bal_prev, $balance, $assetType);
redirect_to("rm_root.php?msg=Successfully updated balance!&type=info");
} else {
redirect_to("rm_root.php?msg= Something went wrong. Failed to update balance!");
return false;
}
} else {
redirect_to("rm_root.php?msg= Please fill all fields!");
return false;
}
}
$traders = UserBalanceList(1);
?>