File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ void RiskParticipationAgreement::buildWithSwapUnderlying(const QuantLib::ext::sh
192192 engineFactory->configuration (MarketContext::pricing))
193193 ->value ());
194194 }
195+ for (auto const & af: envelope ().additionalFields ()){
196+ if (af.first == " im_model" && af.second ==" Schedule" )
197+ notional_ = notional_ * participationRate_;
198+ }
195199 legs_ = underlyingLegs;
196200 legCurrencies_ = underlyingCcys;
197201 legPayers_ = underlyingPayer;
@@ -238,6 +242,10 @@ void RiskParticipationAgreement::buildWithTlockUnderlying(const QuantLib::ext::s
238242
239243 npvCurrency_ = notionalCurrency_ = tlockData_.bondData ().currency ();
240244 notional_ = tlockData_.bondData ().bondNotional ();
245+ for (auto const & af: envelope ().additionalFields ()){
246+ if (af.first == " im_model" && af.second ==" Schedule" )
247+ notional_ = notional_ * participationRate_;
248+ }
241249
242250 // checks
243251
You can’t perform that action at this time.
0 commit comments