Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.canton.network/llms.txt

Use this file to discover all available pages before exploring further.

Templates and code for the SVs to agree on a amulet price using median-based voting. Every sv can change its desired amulet price at any time they like provided they wait at least one tick duration (2.5 minutes by default) between changes. New OpenMiningRounds are always openened with the median of the amulet prices voted for by the SVs.

Templates

template AmuletPriceVote
A vote by an SV for their desired amulet price. Signatory: dso
FieldTypeDescription
dsoParty
svParty
amuletPriceOptional DecimalSet to None for new svs, but defined thereafter.
lastUpdatedAtTimeThe last time this price was updated. Tracked to limit svs from changing their vote more than once per tick.
  • Choice Archive Controller: dso Returns: () (no fields)

Functions

fetchMedianAmuletPrice : Party -> [Party] -> [ContractId AmuletPriceVote] -> Update Decimal