diff --git a/src/main/webdemo/js/Deal.js b/src/main/webdemo/js/Deal.js index 18bfa25da8..581f21a26a 100644 --- a/src/main/webdemo/js/Deal.js +++ b/src/main/webdemo/js/Deal.js @@ -11,6 +11,12 @@ define(['viewmodel/FixedRate'], (fixedRateViewModel) => { } }; + let indexLookup = { + "GBP": "LIBOR", + "USD": "LIBOR", + "EUR": "EURIBOR" + }; + let Deal = function(dealViewModel) { let now = new Date(); let tradeId = `T${now.getUTCFullYear()}-${now.getUTCMonth()}-${now.getUTCDate()}.${now.getUTCHours()}:${now.getUTCMinutes()}:${now.getUTCSeconds()}:${now.getUTCMilliseconds()}` @@ -38,6 +44,7 @@ define(['viewmodel/FixedRate'], (fixedRateViewModel) => { floatingLeg.terminationDate = formatDateForNode(common.terminationDate); floatingLeg.dayCountBasisDay = floatingLeg.dayCountBasis.day; floatingLeg.dayCountBasisYear = floatingLeg.dayCountBasis.year; + floatingLeg.index = indexLookup[common.baseCurrency]; delete floatingLeg.dayCountBasis; common.tradeID = tradeId; diff --git a/src/main/webdemo/js/viewmodel/FloatingLeg.js b/src/main/webdemo/js/viewmodel/FloatingLeg.js index 83a1e22840..3f65792139 100644 --- a/src/main/webdemo/js/viewmodel/FloatingLeg.js +++ b/src/main/webdemo/js/viewmodel/FloatingLeg.js @@ -24,7 +24,6 @@ define(['utils/dayCountBasisLookup'], (dayCountBasisLookup) => { resetRule: "InAdvance", fixingsPerPayment: "Quarterly", fixingCalendar: [ "NewYork" ], - index: "ICE LIBOR", indexSource: "Rates Service Provider", indexTenor: { name: "3M" diff --git a/src/main/webdemo/view/deal.html b/src/main/webdemo/view/deal.html index 7fab800592..1ed9e04587 100644 --- a/src/main/webdemo/view/deal.html +++ b/src/main/webdemo/view/deal.html @@ -132,6 +132,10 @@ Effective From {{deal.floatingLeg.effectiveDate}} + + Index + {{deal.floatingLeg.index}} + Terminates {{deal.floatingLeg.terminationDate}}