清理 SwapEodPositionService.GetAutoSwapCashRebate 冗余 Convert.ToDecimal
CreditRebate 已随资金标签链路改为 decimal,Convert.ToDecimal(decimal) 恒等转换,直接去掉。
This commit is contained in:
@@ -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>
|
||||
/// 互换更新实时持仓信息
|
||||
|
||||
Reference in New Issue
Block a user