Skip to content

Commit 5de04b4

Browse files
author
Damien Barker
committed
QPR-12959 fix forwarding term structure
1 parent 1921d69 commit 5de04b4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

QuantExt/qle/indexes/fallbackiborindex.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ FallbackIborIndex::FallbackIborIndex(const QuantLib::ext::shared_ptr<IborIndex>
3535
: QuantLib::ext::dynamic_pointer_cast<OvernightIndex>(rfrIndex->clone(Handle<YieldTermStructure>(
3636
QuantLib::ext::make_shared<SpreadedIndexYieldCurve>(rfrIndex, originalIndex, spread, false)))),
3737
spread, switchDate,
38-
QuantLib::Handle<YieldTermStructure>(
39-
QuantLib::ext::make_shared<IborFallbackCurve>(originalIndex, rfrIndex, spread, switchDate))) {}
38+
useRfrCurve ? Handle<YieldTermStructure>(
39+
QuantLib::ext::make_shared<IborFallbackCurve>(originalIndex, rfrIndex, spread, switchDate))
40+
: originalIndex->forwardingTermStructure()) {}
4041

4142
FallbackIborIndex::FallbackIborIndex(const QuantLib::ext::shared_ptr<IborIndex> originalIndex,
4243
const QuantLib::ext::shared_ptr<OvernightIndex> rfrIndex, const Real spread,

0 commit comments

Comments
 (0)