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. NewDocumentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
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
- Choice Archive Controller: dso Returns: () (no fields)
Functions
fetchMedianAmuletPrice
: Party -> [Party] -> [ContractId AmuletPriceVote] -> Update Decimal
median
: [Decimal] -> DecimalSee https://en.wikipedia.org/wiki/Median