using YLErp.DBModels; namespace YLErp.Modules.SwapModule.InterestLegs; /// /// 固定值利息腿(InterestMode=固定值)。 /// 计息基数由合约约定(InterestPrincipalFix),无论平仓比例多少都恒等于该值。 /// 业务规则:固定值就是合同写死的固定值,永远不变。 /// public sealed class FixedNotionalLeg : IInterestLegStrategy { public InterestModeEnum Mode => InterestModeEnum.固定值; public NotionalResult CalcNotional(decimal fix, decimal posiNotional, decimal posiLong, decimal posiShort, decimal closePercent) => new(fix, fix, 1m); }