#0
nonstandard
0.00004000 BSV
Q!§I{_ÃzvVû%>üWÜūѤP¹AºâZß?Q®MD{"summary":1,"identifiers":2,"keyDates":3,"creditStats":4,"tradingStats":5,"__cls":"class FacilitySC {\n constructor(\n owners = [],\n name = '',\n agentId = '',\n loanFormat = 'Revolver',\n dealId = '',\n facilityTypeCode = '',\n accrualType = 'Accrual',\n facilityControlNumber = 0,\n ISIN = 0,\n CUSIP = 0,\n effectiveDate = new Date(),\n dateOfAgreement = new Date(),\n expiryDate = new Date(),\n finalMaturityDate = new Date(),\n multiCurrency = false,\n fxRate = 0,\n globalProposedAmount = 0,\n globalOriginationAmount = 0,\n repaymentRule = 'FIFO',\n cancelationRule = 'FIFO',\n prepaymentRule = 'FIFO',\n ageFactor = 0,\n creditRating = 0,\n reportingCurrency = 0,\n maxRate = 0,\n minRate = 0,\n maxSpread = 0,\n minSpread = 0,\n assignmentFeesRequired = false,\n borrowerConsentRequired = false,\n agentConsentRequired = false,\n margin = 0,\n creditAgreement = '',\n createdBy = '',\n uploaded = '',\n lastModified = '',\n imported = false\n ) {\n this._owners = owners;\n\n this.summary = {\n name,\n agentId,\n loanFormat,\n };\n\n this.identifiers = {\n dealId,\n facilityTypeCode,\n accrualType,\n facilityControlNumber,\n ISIN,\n CUSIP,\n };\n\n this.keyDates = {\n effectiveDate,\n dateOfAgreement,\n expiryDate,\n finalMaturityDate,\n };\n\n this.creditStats = {\n multiCurrency,\n fxRate,\n globalProposedAmount,\n globalOriginationAmount,\n amountUnavailable: 0,\n repaymentRule,\n cancelationRule,\n prepaymentRule,\n };\n\n this.tradingStats = {\n ageFactor,\n creditRating,\n reportingCurrency,\n maxRate,\n minRate,\n maxSpread,\n minSpread,\n assignmentFeesRequired,\n borrowerConsentRequired,\n agentConsentRequired,\n margin,\n lastTradeAmount: '--',\n creditAgreement,\n };\n\n this.createdBy = createdBy;\n this.uploaded = uploaded;\n this.lastModified = lastModified;\n this.lendersOfRecord = [];\n this.facilityFees = [];\n this.imported = imported;\n }\n\n setDealId(dealId) {\n this.identifiers.dealId = dealId;\n }\n\n setImported(imported) {\n this.imported = imported;\n }\n\n setLastModified(lastModified) {\n this.creationInfo.lastModified = lastModified;\n }\n\n setLendersOfRecord(fundId, numberOfShares) {\n const prev = this.lendersOfRecord.filter(x => x.fundId === fundId);\n const commitmentAmount = numberOfShares;\n if (prev.length !== 0) {\n prev[0].commitmentAmount += commitmentAmount;\n } else {\n this.lendersOfRecord.push({ fundId, status: 'Actual', commitmentAmount, timestamp: Date.now() });\n }\n }\n\n addOwners(publicKeys) {\n this._owners = [...new Set(this._owners.concat(publicKeys))];\n this.tradingStats._owners = [...new Set(this._owners.concat(publicKeys))];\n this.creditStats._owners = [...new Set(this._owners.concat(publicKeys))];\n this.keyDates._owners = [...new Set(this._owners.concat(publicKeys))];\n this.identifiers._owners = [...new Set(this._owners.concat(publicKeys))];\n this.summary._owners = [...new Set(this._owners.concat(publicKeys))];\n }\n\n setAmountUnavailable(amountUnavailable) {\n this.creditStats.amountUnavailable = amountUnavailable;\n }\n\n setLastTradeAmount(lastTradeAmount) {\n this.tradingStats.lastTradeAmount = lastTradeAmount;\n }\n\n addFacilityFee(typeAndFee) {\n this.facilityFees.push(typeAndFee);\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["03a799497b5fc39d7a765601fb253efc5796dc14c5abd1a450b94113bae25adf3f"],"Facility 1","03a799497b5fc39d7a765601fb253efc5796dc14c5abd1a450b94113bae25adf3f","Revolver","5a9a07105ca56a7fdfdccdcbd1a5ed7ec0fc71499e437b0c17770e138490815d:0","type","Accrual",0,0,0,"12/28/2020","12/28/2020","12/28/2020","12/28/2020","true",0,0,0,"FIFO","FIFO","FIFO",0,0,0,0,0,0,0,false,false,false,0,"agree","03a799497b5fc39d7a765601fb253efc5796dc14c5abd1a450b94113bae25adf3f","12/28/2020","12/28/2020",false]}u
https://whatsonchain.com/tx/9b2c9b1a8077d9dfcab911bb18b5a0d01312dcdfd2100a01b3e5e03cfa77f04d