using YLErp.DBModels; namespace YLErp.Modules.SwapModule.FundingLegs; /// /// 固定值融资腿(InterestMode=固定值)。 /// 计息基数由合约约定(InterestPrincipalFix),无论平仓比例多少都恒等于该值。 /// 业务规则:固定值就是合同写死的固定数额(Amount),永远不变。 /// 不叫 FixedNotionalLeg——"固定值"不一定是"名义本金(Notional)",避免与 ContractNotionalLeg 概念撞车。 /// public sealed class FixedAmountLeg : IFundingLegStrategy { public InterestModeEnum Mode => InterestModeEnum.固定值; public NotionalResult CalcNotional(decimal fix, decimal posiNotional, decimal closePercent) => new(fix, fix, 1m); }