diff --git a/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/analytics/OGStub.kt b/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/analytics/OGStub.kt index 106dbc2ee8..bd5a9c1a69 100644 --- a/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/analytics/OGStub.kt +++ b/samples/simm-valuation-demo/src/main/kotlin/net/corda/vega/analytics/OGStub.kt @@ -34,7 +34,8 @@ class IsdaConfiguration { object BimmAnalysisUtils { fun computeMargin(combinedRatesProvider: ImmutableRatesProvider?, normalizer: PortfolioNormalizer, calculatorTotal: RwamBimmNotProductClassesCalculator, first: CurrencyParameterSensitivities, second: MultiCurrencyAmount): Triple { - val amount = (second.amounts.reduce { x, y -> x + y }.amount) / 100.0 // Not to be used for financial purposes... + + val amount = second.amounts.map { it.amount }.sum() return Triple(amount, 0.0, amount) } }