清理 SwapEodPositionService.GetAutoSwapCashRebate 冗余 Convert.ToDecimal

CreditRebate 已随资金标签链路改为 decimal,Convert.ToDecimal(decimal) 恒等转换,直接去掉。
This commit is contained in:
hjhan
2026-08-27 18:36:28 +08:00
parent 15d25228af
commit 117ea3e1d2
@@ -1731,7 +1731,7 @@ namespace YLErp.Modules.SwapModule
settlements[i].RebateAmount = legs[i].InterestClosePnL * -DirectionRatio.ReceivePay(legs[i].InterestDirection);
}
var split = FundTagCalc.SplitUnwindByTag(settlements);
return Math.Round(totalRebate - Convert.ToDecimal(split.CreditRebate), 2, MidpointRounding.AwayFromZero);
return Math.Round(totalRebate - split.CreditRebate, 2, MidpointRounding.AwayFromZero);
}
/// <summary>
/// 互换更新实时持仓信息