hjhan
ae4af111f3
refactor(margin): 抽取 ResolveMarginOrginPv 保证金维度重映射方法
把 InitSwapDealInterest 里 8 行 inline 的 orginPv 重映射逻辑抽成独立方法
ResolveMarginOrginPv(position, preEodPosition, fallback)。
保证金腿被迫走融资腿差分公式(dynomicPrincipal = TdPrincipal + posi - orginPv),
但 orginPv 对融资腿是'交易名义本金',对保证金腿须对齐到'保证金余额',
否则维度不匹配算出巨负值。提取后 InitSwapDealInterest 更干净,
且新方法待迁入 Margin 模块。
判断从 InterestModeEnum==5||6 改为 MarginModes.Contains(统一口径)。
纯提取, 行为零变化。
验证: 编译0错误, 全量489测试7失败(基线一致)。
2026-08-11 10:23:22 +08:00
..
2024-05-09 14:06:26 +08:00
2026-08-11 09:57:20 +08:00
2025-09-02 18:01:22 +08:00
2026-03-11 15:04:10 +08:00
2024-05-09 14:06:26 +08:00
2026-05-22 14:02:23 +08:00
2026-07-28 14:50:05 +08:00
2026-08-07 17:44:04 +08:00
2026-08-06 10:58:44 +08:00
2025-07-25 13:40:56 +08:00
2025-04-22 09:45:21 +08:00
2026-08-11 10:23:22 +08:00
2024-05-09 14:06:26 +08:00
2026-05-08 15:09:58 +08:00
2026-03-20 14:07:43 +08:00
2026-03-13 16:06:33 +08:00
2025-09-09 13:07:21 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-07-31 11:02:49 +08:00