lastDate = coupon.accrualStartDate().clone();
} else {
lastDate = couponDate.sub(new Period(1, TimeUnit.Years));
}
}
discount *= y.discountFactor(settlement, couponDate, lastDate, couponDate);
} else {
discount *= y.discountFactor(lastDate, couponDate);
}
lastDate = couponDate.clone();