Q!ñEû¿ë$*ÊÛ©P]XG2{å˸*[bk¨|Q®MT {"summary":1,"identifiers":2,"keyDates":3,"creditStats":4,"tradingStats":5,"__cls":"class FacilitySC {\r\n constructor(\r\n owners = [],\r\n name = '',\r\n owningBranch = '',\r\n loanFormat = 'Revolver',\r\n agentId = '',\r\n dealId = '',\r\n facilityTypeName = '',\r\n facilityTypeCode = '',\r\n accrualType = 'Accrual',\r\n ANSI = '',\r\n facilityControlNumber = 0,\r\n ISIN = 0,\r\n CUSIP = 0,\r\n startDate = '',\r\n effectiveDate = '',\r\n loanEffectiveDate = '',\r\n creditAgreementDate = '',\r\n expiryDate = '',\r\n finalMaturityDate = '',\r\n breakDate = '',\r\n multiCurrency = false,\r\n fxRate = 0,\r\n globalProposedAmount = 0,\r\n globalOriginationAmount = 0,\r\n repaymentRule = 'FIFO',\r\n cancelationRule = 'FIFO',\r\n prepaymentRule = 'FIFO',\r\n facilityCurrency = '',\r\n ageFactor = 0,\r\n bidAsk = 0,\r\n creditRating = '',\r\n reportingCurrency = '',\r\n maxRate = 0,\r\n minRate = 0,\r\n spread = 0,\r\n maxSpread = 0,\r\n minSpread = 0,\r\n assignmentFeesRequired = false,\r\n assignmentFeeType = 'Flat Amount',\r\n assignmentFee = 0,\r\n borrowerConsentRequired = false,\r\n agentConsentRequired = false,\r\n margin = 0,\r\n interestOption = '',\r\n baseRate = '',\r\n baseRateAmount = 0,\r\n creditAgreementName = '',\r\n purchaseRate = 0,\r\n RACRate = 0,\r\n averageLibor = 0,\r\n currentLibor = 0,\r\n exchangeRate = 0,\r\n createdBy = '',\r\n uploaded = '',\r\n lastModified = '',\r\n imported = false\r\n ) {\r\n this._owners = owners;\r\n\r\n this.summary = {\r\n name,\r\n owningBranch,\r\n loanFormat,\r\n agentId,\r\n };\r\n\r\n this.identifiers = {\r\n dealId,\r\n facilityTypeName,\r\n facilityTypeCode,\r\n accrualType,\r\n ANSI,\r\n facilityControlNumber,\r\n ISIN,\r\n CUSIP,\r\n };\r\n\r\n this.keyDates = {\r\n startDate,\r\n effectiveDate,\r\n loanEffectiveDate,\r\n creditAgreementDate,\r\n expiryDate,\r\n finalMaturityDate,\r\n breakDate\r\n };\r\n\r\n this.creditStats = {\r\n multiCurrency,\r\n fxRate,\r\n globalProposedAmount,\r\n numberOfShares: 0,\r\n globalOriginationAmount,\r\n amountUnavailable: 0,\r\n repaymentRule,\r\n cancelationRule,\r\n prepaymentRule,\r\n };\r\n\r\n this.tradingStats = {\r\n facilityCurrency,\r\n ageFactor,\r\n bidAsk,\r\n creditRating,\r\n reportingCurrency,\r\n maxRate,\r\n minRate,\r\n spread,\r\n maxSpread,\r\n minSpread,\r\n assignmentFeesRequired,\r\n assignmentFeeType,\r\n assignmentFee,\r\n borrowerConsentRequired,\r\n agentConsentRequired,\r\n margin,\r\n lastTradeAmount: '--',\r\n interestOption,\r\n baseRate,\r\n baseRateAmount,\r\n creditAgreementName,\r\n purchaseRate,\r\n RACRate,\r\n averageLibor,\r\n currentLibor,\r\n exchangeRate\r\n };\r\n\r\n this.createdBy = createdBy;\r\n this.uploaded = uploaded;\r\n this.lastModified = lastModified;\r\n this.lendersOfRecord = [];\r\n this.facilityFees = [];\r\n this.imported = imported;\r\n }\r\n\r\n setDealId(dealId) {\r\n this.identifiers.dealId = dealId;\r\n }\r\n\r\n setImported(imported) {\r\n this.imported = imported;\r\n }\r\n\r\n setLastModified(lastModified) {\r\n this.creationInfo.lastModified = lastModified;\r\n }\r\n\r\n setLendersOfRecord(fundId, numberOfShares) {\r\n const prev = this.lendersOfRecord.filter(x => x.fundId === fundId);\r\n const commitmentAmount = numberOfShares;\r\n if (prev.length !== 0) {\r\n prev[0].commitmentAmount += commitmentAmount;\r\n } else {\r\n this.lendersOfRecord.push({ fundId, status: 'Actual', commitmentAmount, timestamp: Date.now() });\r\n }\r\n }\r\n\r\n addOwners(publicKeys) {\r\n this._owners = [...new Set(this._owners.concat(publicKeys))];\r\n this.tradingStats._owners = [...new Set(this._owners.concat(publicKeys))];\r\n this.creditStats._owners = [...new Set(this._owners.concat(publicKeys))];\r\n this.keyDates._owners = [...new Set(this._owners.concat(publicKeys))];\r\n this.identifiers._owners = [...new Set(this._owners.concat(publicKeys))];\r\n this.summary._owners = [...new Set(this._owners.concat(publicKeys))];\r\n }\r\n\r\n setAmountUnavailable(amountUnavailable) {\r\n this.creditStats.amountUnavailable = amountUnavailable;\r\n }\r\n\r\n setLastTradeAmount(lastTradeAmount) {\r\n this.tradingStats.lastTradeAmount = lastTradeAmount;\r\n }\r\n\r\n addFacilityFee(typeAndFee) {\r\n this.facilityFees.push(typeAndFee);\r\n }\r\n\r\n edit([\r\n name, \r\n agentId, \r\n loanFormat,\r\n facilityTypeCode,\r\n accrualType,\r\n facilityControlNumber, \r\n ISIN,\r\n CUSIP, \r\n effectiveDate, \r\n dateOfAgreement,\r\n expiryDate, \r\n finalMaturityDate,\r\n multiCurrency, \r\n fxRate,\r\n globalProposedAmount,\r\n globalOriginationAmount, \r\n repaymentRule,\r\n cancelationRule,\r\n prepaymentRule,\r\n ageFactor,\r\n creditRating,\r\n reportingCurrency,\r\n maxRate,\r\n minRate,\r\n maxSpread,\r\n minSpread,\r\n assignmentFeesRequired,\r\n borrowerConsentRequired,\r\n agentConsentRequired,\r\n margin,\r\n creditAgreement\r\n ]) {\r\n this.summary.name = name; \r\n this.summary.agentId = agentId; \r\n this.summary.loanFormat = loanFormat;\r\n this.identifiers.facilityTypeCode = facilityTypeCode;\r\n this.identifiers.accrualType = accrualType;\r\n this.identifiers.facilityControlNumber = facilityControlNumber;\r\n this.identifiers.ISIN = ISIN;\r\n this.identifiers.CUSIP = CUSIP; \r\n this.keyDates.effectiveDate = effectiveDate; \r\n this.keyDates.dateOfAgreement = dateOfAgreement;\r\n this.keyDates.expiryDate = expiryDate; \r\n this.keyDates.finalMaturityDate = finalMaturityDate;\r\n this.creditStats.multiCurrency = multiCurrency; \r\n this.creditStats.fxRate = fxRate;\r\n this.creditStats.globalProposedAmount = globalProposedAmount;\r\n this.creditStats.globalOriginationAmount = globalOriginationAmount; \r\n this.creditStats.repaymentRule = repaymentRule;\r\n this.creditStats.cancelationRule = cancelationRule;\r\n this.creditStats.prepaymentRule = prepaymentRule;\r\n this.creditStats.ageFactor = ageFactor;\r\n this.tradingStats.creditRating = creditRating;\r\n this.tradingStats.reportingCurrency = reportingCurrency;\r\n this.tradingStats.maxRate = maxRate;\r\n this.tradingStats.minRate = minRate;\r\n this.tradingStats.maxSpread = maxSpread;\r\n this.tradingStats.minSpread = minSpread;\r\n this.tradingStats.assignmentFeesRequired = assignmentFeesRequired;\r\n this.tradingStats.borrowerConsentRequired = borrowerConsentRequired;\r\n this.tradingStats.agentConsentRequired = agentConsentRequired;\r\n this.tradingStats.margin = margin;\r\n this.tradingStats.creditAgreement = creditAgreement;\r\n }\r\n}","__index":{"obj":0},"__func":"constructor","__args":[["038c1d03f145fbbfeb242acadba9505d58054799327be5cbb88f2a5b626ba8867c"],"name1","owningBranch1","loanFormat1","038c1d03f145fbbfeb242acadba9505d58054799327be5cbb88f2a5b626ba8867c","","facilityTypeName1","facilityTypeCode","accrualType1","ANSI1","facilityControlNumber1","ISIN1","CUSIP1","startDate1","effectiveDate1","loanEffectiveDate1","creditAgreementDate1","expiryDate1","finalMaturityDate1","breakDate1","multiCurrency1","fxRate1","globalProposedAmount1","globalOriginationAmount1","repaymentRule1","cancelationRule1","prepaymentRule1","facilityCurrency1","ageFactor1","bidAsk1","creditRating1","reportingCurrency1","maxRate1","minRate1","spread1","maxSpread1","minSpread1","assignmentFeesRequired1","assignmentFeeType1","assignmentFee1","borrowerConsentRequired1","agentConsentRequired1","margin1","interestOption1","baseRate1","baseRateAmount1","creditAgreementName1","purchaseRate1","RACRate1","averageLibor1","currentLibor1","exchangeRate2","{CURRENT_INSTITUTION}","01/05/2021","01/05/2021",true]}u
https://whatsonchain.com/tx/undefined