hjhan
aca834d8dc
refactor(interest): 新增预付金腿策略 + 策略工厂
新增(零生产改动):
- InterestLegs/PrepayLeg.cs
mode 5 初始预付金 / mode 6 追加预付金 共用。
计息基数=InterestPrincipalFix, 平仓本金=Fix×closePercent。
构造时校验mode合法性(只接受5/6)。
方向翻转/orginPv重映射等独有逻辑后续单独抽。
- InterestLegs/InterestLegStrategyFactory.cs
按InterestMode返回对应策略, 收敛switch分发。
死代码mode 3/4/7/8不注册, 传入会抛ArgumentException。
测试(14个全过):
- 预付金: 部分平仓/全平/非法mode构造
- 工厂: 各活跃mode返回正确类型/未注册mode抛异常/int重载等价
fixing接入尝试(已回退):
- 尝试用Fr007IndexFixer.Instance替换SwapDealService的6处取价
- 发现问题: 静态Instance绕过TryGetFloatRate(virtual)接缝,
破坏测试stub机制(CI_007/CI_008失败)
- 已回退, 下次改用实例级IIndexFixer(委托TryGetFloatRate)方式接入
2026-08-10 18:40:04 +08:00
..
2025-08-29 14:43:24 +08:00
2026-08-10 18:40:04 +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-09 22:28:40 +08:00
2026-07-03 08:22:27 +08:00
2026-08-10 17:59:30 +08:00
2024-06-05 14:37:30 +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