//return AnnuityCouponONSpreadSimplifiedDefinition.from(startDate, maturityTenor, 1, spread, isPayer, indexON, paymentLag, calendar, businessDayConvention, paymentPeriod, eomLeg);
return Pair.of(new FloatingSpreadIRLeg(dayCount,
PeriodFrequency.of(paymentPeriod),
indexConvention.getRegionCalendar(),
businessDayConvention,
new InterestRateNotional(currency, _amount),
eomLeg,
floatingReferenceRateId,
FloatingRateType.OIS,
_rate),
Triple.of(startDate, spotDateLeg, _valuationTime.plus(maturityTenor)));
}
//return AnnuityCouponONSimplifiedDefinition.from(startDate, maturityTenor, 1, isPayer, indexON, paymentLag, calendar, businessDayConvention, paymentPeriod, eomLeg);
return Pair.of(new FloatingInterestRateLeg(dayCount,
PeriodFrequency.of(maturityTenor),
indexConvention.getRegionCalendar(),
businessDayConvention,
new InterestRateNotional(currency, _amount),
eomLeg,
floatingReferenceRateId, FloatingRateType.OIS),
Triple.of(startDate, spotDateLeg, _valuationTime.plus(maturityTenor)));
}