
hjhanandClaude Opus 4.7
db447aa584
refactor(swap): 保证金腿在 GetInterests 循环入口提前路由,融资腿分支树去除 MarginModes 依赖
- 保证金腿(5/6)在最外层路由并 continue:本金(InterestPrincipalFix×closePrecent)、
方向翻转、CalcMarginInterest 收口一处;newClosePercent 在保证金腿恒等于
closePrecent,直接传参
- 融资腿(1/2/9)分支树内 3 处 MarginModes.Contains 归零,后续融资腿改动与保证金解耦
- GetFixedRate 前移为两路共用(纯读函数,已验证无副作用)
- 有意跳过 GetFloatRate:CalcMarginInterest 纯固定利率(FundingLegRate.Fixed/
FloatRate 恒 0),浮动取价对保证金无意义;脏数据 FloatRateUnderlyingCode
缺价时不再阻断保证金结算(唯一行为变化,方向更安全)
- 验证:SwapModule 537 用例 A/B(带改/不带改)摘要完全一致(71F/459P/7S),
失败项均为本机无库环境失败;内网全量单测待跑
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-16 11:03:11 +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-08-13 17:21:04 +08:00
2026-08-07 17:44:04 +08:00
2026-08-14 15:14:09 +08:00
2025-07-25 13:40:56 +08:00
2025-04-22 09:45:21 +08:00
2026-08-16 11:03:11 +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