We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60ea680 commit 534232eCopy full SHA for 534232e
1 file changed
QuantExt/qle/pricingengines/discountingfxforwardengine.cpp
@@ -97,7 +97,7 @@ void DiscountingFxForwardEngine::calculate() const {
97
Real fx1 = settleCcy1 ? 1.0 : fxfwd;
98
Real fx2 = settleCcy1 ? 1 / fxfwd : 1.0;
99
100
- QL_REQUIRE(!arguments_.isPhysicallySettled || arguments_.payDate <= arguments_.fixingDate ||
+ QL_REQUIRE(arguments_.isPhysicallySettled || arguments_.payDate <= arguments_.fixingDate ||
101
arguments_.fxIndex != nullptr,
102
"If pay date (" << arguments_.payDate << ") is strictly after fixing date (" << arguments_.fixingDate
103
<< "), an FX Index must be given for a cash-settled FX Forward.");
0 commit comments