hjhan
217c2d5826
feat(accrual): 新增 FundingLegAccrual.AccrueCompoundEod + 影子测试
第1步迁移: CalcDailyCompoundInterestByEod(EOD复利单日)。
新增纯函数 AccrueCompoundEod:
- 重置日: 本金 = positionPrincipal + priorUnrealized × remainingPercent
- 非重置日: 本金 = priorAccrualPrincipal + positionPrincipal - originalPv
- InterestAmount = priorUnrealized × closeRatio + dayInterest
- TdInterestAmount = dayInterest(不含 priorUnrealized)
影子测试(2个,全过):
- 重置日场景: 旧新 InterestAmount/TdInterestAmount 一致
- 非重置日场景: 同上
旧方法暂不删——新旧并存,对比验证后再替换调用点。
验证: 编译0错误, 全量515测试7失败(基线一致)。
2026-08-12 09:15:01 +08:00
..
2026-04-21 15:49:44 +08:00
2026-07-30 14:46:07 +08:00
2024-05-09 14:06:26 +08:00
2026-08-05 15:55:01 +08:00
2026-07-31 14:49:52 +08:00
2024-05-09 14:06:26 +08:00
2026-07-31 14:49:52 +08:00
2026-08-11 14:35:34 +08:00
2025-09-09 11:39:12 +08:00
2024-05-22 17:59:07 +08:00
2026-07-31 15:06:16 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-11 09:57:20 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-05 15:55:01 +08:00
2024-05-09 14:06:26 +08:00
2026-03-25 10:24:48 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-04-29 17:50:15 +08:00
2024-05-09 14:06:26 +08:00
2026-08-03 17:44:25 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-07-17 13:35:23 +08:00
2026-08-06 13:09:27 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-05 14:39:01 +08:00
2024-05-09 14:06:26 +08:00
2026-03-11 15:04:10 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-07-31 10:49:18 +08:00
2026-08-12 09:15:01 +08:00
2026-07-16 17:17:21 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2026-08-06 11:29:54 +08:00
2024-05-09 14:06:26 +08:00
2026-03-03 18:17:37 +08:00
2026-08-05 10:58:29 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00
2024-05-09 14:06:26 +08:00