/** 信用盘玩家（代理授信）；与主站钱包资金盘区分。 */
export function isCreditFundingPlayer(
  source?: { funding_mode?: string | null; credit_line_mode?: boolean | null } | null,
): boolean {
  if (!source) {
    return false;
  }

  return source.credit_line_mode === true || source.funding_mode === "credit";
}
