hjhan
82fb5e5916
refactor(margin): SwapDealService 5处保证金判断收敛到 MarginModes
把 5 处 inline 的 InterestModeEnum==5||6 判断改为 MarginModes.Contains:
- :99 前端参考计算分流(MarginLegs vs InterestLegs)
- :680 ResolveInterestLegPositions 持仓对齐
- :716 ResolveInterestLegPositionsAsOf 未来持仓 LINQ Where
- :722 ResolveInterestLegPositionsAsOf if 判断
- :2023 平仓 SwapMarginAmount 汇总
- :2441 UpdateInitalPosition 平仓递减
仅剩 CalcNotionalByMode 的 case 标签(switch case 须常量,无法用 Contains)。
SwapDealService 内 InterestModeEnum.初始预付金/追加预付金 引用: 10处→2处(case标签)。
验证: 编译0错误, 全量489测试7失败(基线一致)。
2026-08-11 10:30:44 +08:00
..
2025-08-29 14:43:24 +08:00
2026-08-10 22:09:09 +08:00
2026-08-11 10:06:27 +08:00
2026-08-11 10:15:20 +08:00
2024-05-09 14:06:26 +08:00
2026-08-10 18:01:37 +08:00
2025-09-11 14:18:51 +08:00
2026-08-08 16:32:16 +08:00
2024-05-09 14:06:26 +08:00
2026-07-23 11:06:50 +08:00
2026-08-11 09:23:01 +08:00
2026-08-11 10:30:44 +08:00
2026-07-03 08:22:27 +08:00
2026-08-11 09:57:20 +08:00
2026-08-11 09:40:48 +08:00
2026-08-06 17:45:43 +08:00
2025-04-14 16:31:35 +08:00
2026-07-29 14:42:03 +08:00
2026-07-23 11:06:50 +08:00
2026-08-07 19:44:01 +08:00
2026-07-21 15:28:14 +08:00
2026-07-22 16:51:40 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-01-26 17:35:56 +08:00
2026-07-23 11:06:50 +08:00
2026-08-08 13:32:22 +08:00
2026-08-05 15:55:01 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-06-04 18:19:49 +08:00