Skip to content

Commit d7dfc25

Browse files
committed
comments
Signed-off-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
1 parent fdebcb8 commit d7dfc25

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

daml/splice-amulet/daml/Splice/AmuletConfig.daml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ data AmuletConfig unit = AmuletConfig with
6161
-- that should be used for command submissions.
6262
transferPreapprovalFee : Optional Decimal -- ^ Fee for keeping a transfer pre-approval around.
6363
featuredAppActivityMarkerAmount : Optional Decimal -- ^ $-amount used for the conversion from FeaturedAppActivityMarker -> AppRewardCoupon
64-
externalPartyConfigStateTickDuration : Optional RelTime
64+
externalPartyConfigStateTickDuration : Optional RelTime -- ^ Half the lifetime of an `ExternalPartyConfigState` contract and the overlap between two successive contracts.
6565
deriving (Eq, Show)
6666

6767
getExternalPartyConfigStateTickDuration : AmuletConfig a -> RelTime

daml/splice-amulet/daml/Splice/ExternalPartyConfigState.daml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@ import qualified Splice.AmuletConfig as Unit
55
import Splice.Util
66
import Splice.Types
77

8+
-- | `ExternalPartyConfigState` stores the configuration required for transfer, allocations, traffic purchases and taps.
9+
-- While it exposes a subset of the information also available on `OpenMiningRound`, `ExternalPartyConfigState` contracts
10+
-- are active much longer allowing for a 24 delay between preparing and executing a transaction.
11+
--
12+
-- There are always two `ExternalPartyConfigState` contracts created approximately `externalPartyConfigStateTickDuration` apart from each other
13+
-- and each is active for `2 * externalPartyConfigStateTickDuration`.
814
template ExternalPartyConfigState
915
with
1016
dso : Party
11-
holdingFeesOpenRoundNumber : Round
17+
holdingFeesOpenRoundNumber : Round -- ^ The round number used
1218
amuletPrice : Decimal
1319
transferConfig : TransferConfigV2 Unit.USD
1420
targetArchiveAfter : Time -- ^ Lower bound on the time the contract gets archived, not enforced as a strict upper bound but the SVs will archive it shortly after this time has been reached.

0 commit comments

Comments
 (0)