Skip to content

Commit 2340c4f

Browse files
pcaspersjenkins
authored andcommitted
QPR-12545 overwrite discount
1 parent 3725758 commit 2340c4f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

OREData/ored/scripting/engines/scriptedinstrumentpricingengine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ void ScriptedInstrumentPricingEngine::calculate() const {
206206
cashFlowResults[i].currency = paylog->currencies().at(i);
207207
cashFlowResults[i].legNumber = paylog->legNos().at(i);
208208
cashFlowResults[i].type = paylog->cashflowTypes().at(i);
209+
cashFlowResults[i].discountFactor = discount;
209210
DLOG("got cashflow " << QuantLib::io::iso_date(cashFlowResults[i].payDate) << " "
210211
<< cashFlowResults[i].currency << cashFlowResults[i].amount << " "
211212
<< cashFlowResults[i].currency << "-" << model_->baseCcy() << " " << fx << " discount("

0 commit comments

Comments
 (0)