randomsave

This commit is contained in:
Macocian Adrian Radu
2022-06-05 00:14:02 +02:00
parent d7a0d46344
commit 64270e2217
13 changed files with 163 additions and 78 deletions

View File

@@ -259,7 +259,7 @@ func ResolveQuantity:
assign-output resolvedQuantity -> unitOfAmount:
resolvedValue -> unitOfAmount
/*
func CashflowPayoutToContract:
inputs:
cashflow Cashflow (1..1)
@@ -288,13 +288,13 @@ func CashflowPayoutToContract:
PayoutParty1
( cashflow
, MkScale
( Konst (quantity -> multiplier)
( Konst (quantity -> multiplier only-element)
, if fixingDate exists then
MkGet
( MkTruncate
( fixingDate
, MkScale
( ExchangeRate(quantity -> unitOfAmount -> currency, settlementTerms -> settlementCurrency)
( ExchangeRateFunc(quantity -> unitOfAmount, settlementTerms -> settlementCurrency)
, MkGet
( MkTruncate
( settlementTerms -> settlementDate -> valueDate

View File

@@ -63,7 +63,7 @@ type AdjustableOrRelativeDate:
adjustableDate AdjustableDate (0..1)
type AdjustableDate:
unadjastableDate string (0..1) //date
unadjustedDate string (0..1) //date
type ForeignExchange:
exchangedCurrency1 Cashflow (1..1)