hjhan
3f194f7ccc
fix(accrual): Round收口到SwapInterest.Round + 复利分段边界修复
3项修复:
1. SwapInterest.Round 从 private 改为 public:
所有计息路径收口到一处, FundingLegAccrual 不再用裸 Math.Round
2. ApplyUnwind 精度警告:
注释标注'资金腿务必传 FundingLegPrecision=12', 默认11是易忘的坑
3. AccrueCompoundPeriod 分段边界修复(根因):
旧bug: 中间段 IncludeEnd=true 导致重置日利息用了旧本金
修复: 中间段 IncludeEnd=false(半开区间), 重置日归下一段用新本金
对齐旧逐日循环语义: 重置日先更新本金再算息
同时: 中间值不Round(对齐旧代码只在最终输出Round一次)
清理: 删除 SwapInterestAccrueCompoundInArrearsTest 半成品残留
验证: 编译0错误, 7个影子测试全过, 全量520测试7失败(基线一致)。
2026-08-12 09:59:53 +08:00
..
2026-08-12 09:59:53 +08:00
2025-08-29 14:43:24 +08:00
2026-08-11 11:24:05 +08:00
2026-08-12 06:13:38 +08:00
2026-08-11 16:59:22 +08:00
2026-08-11 17:09:13 +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-12 07:05:41 +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-12 09:45:19 +08:00
2026-07-03 08:22:27 +08:00
2026-08-11 16:59:22 +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-12 09:45:19 +08:00
2026-08-11 19:23:21 +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