% !TeX root = ../build/main.tex \Davinci introduces the Vocdoni token (\token) as a key element of its decentralized voting ecosystem, playing a crucial role in the protocol's sustainability. The token serves multiple utility functions that align the incentives of all participants (voting organizers, sequencers, and voters), ensuring the integrity, efficiency, and security of the system. In particular, the token has the following roles. \begin{itemize} \item \emph{Collateral for sequencers.} Sequencers must stake \token tokens as collateral to participate. This serves as a safeguard to ensure responsible participation. Misbehavior or failure to meet obligations can result in penalties, including partial or total loss of the stake. \item \emph{Incentive mechanism.} Sequencers earn rewards in \token tokens based on their contribution to processing valid votes and maintaining the network. Rewards are proportional to the number of valid votes successfully added to the shared state. \item \emph{Payment for voting processes.} Organizers pay fees in \token tokens to create and manage voting events. These fees depend on factors such as registry size, voting duration, and desired security level. \item \emph{Governance.} Token holders can participate in the decentralized governance of the project, influencing protocol upgrades, ecosystem development, and other initiatives. This ensures that the project evolves in a transparent, community-driven manner. \end{itemize} \subsection{Economics for organizers} Organizers cover the costs of voting processes in \token tokens. The total cost combines four components: \[ \totalCost = \baseCost + \capacityCost + \durationCost + \securityCost, \] where % \begin{itemize} \item $\baseCost$ is a fixed setup fee, independent of process duration or security level. It is calculated as \[ \baseCost = \fixedCost + \maxVotes \cdot p, \] where $\fixedCost$ is a protocol-defined fee, $\maxVotes$ the maximum number of votes{\color{blue}{ (votes or voters?)}}, and $p$ a linear factor. This portion is not reimbursable and always rewarded to sequencers. \item $\capacityCost$ accounts for limited sequencer capacity. That is, is models the cost of reserving space for voting events relative to the number of available sequencers, number of voting events running, and the maximum number of voters. Costs rise non-linearly as available capacity decreases as \[ k_1 \cdot \left( \frac{\totalVotingProcesses}{\totalSequencers - \usedSequencers + \epsilon} \cdot \maxVotes \right)^a \] with $k_1$ a scaling factor, $\totalVotingProcesses$ the number of voting processes running, $\totalSequencers$ the number of registered sequencers, $\usedSequencers$ the number of sequencers handling other voting events, $\epsilon$ a small constant to avoid division by zero, and $a$ an exponent controlling non-linearity. \item $\durationCost$ grows with the length of the voting period, scaled non-linearly with the formula \[ k_2 \cdot \processDuration^b, \] where $\processDuration$ is measured in hours, $k_2$ is a scaling factor, and $b$ controls non-linear growth. Shorter elections are cost-efficient, while longer ones become increasingly expensive. \item $\securityCost$ models the number of sequencers used, growing exponentially with diminishing returns: \[ k_3 \cdot e^{c \left( \frac{\numSequencers}{\totalSequencers} \right)^d}, \] where $k_3$ is a scaling factor, $c$ controls the steepness, $\numSequencers$ is the number of sequencers needed in the process, $\totalSequencers$ the number of available sequencers, and $d$ adjusts the non-linearity as the number of sequencers increases.\\ {\color{blue}Before $\totalSequencers$ was defined as the number of \textit{registered} sequencers and here it means the number of \textit{available} sequencers. Is it assumed to always be the same?} \end{itemize} \noi To avoid impractical scenarios, the following two constraints are enforced: \begin{itemize} \item If $\processDuration > \maxDuration$, then $\totalCost = \infty$. \item If $\numSequencers > \totalSequencers$, then $\totalCost = \infty$. \end{itemize} \paragraph{Reimbursements.} Organizers initially reserve resources for all eligible voters, assuming maximum turnout. Since this rarely occurs, unused portions may be reimbursed. The reimbursement is defined as \[ \reimbursement = \totalCost - \totalReward - \baseCost, \] where $\totalReward$ is the actual amount distributed to sequencers based on their participation. This mechanism ensures organizers do not overpay for unused capacity, while sequencers are still compensated for committed resources. \subsection{Economics for sequencers} Sequencers must stake \token in the sequencer registry smart contract to participate. Rewards are based on: \begin{itemize} \item The number of votes included in the shared state. \item The number of vote rewrites (either overwrites or re-encryptions). Rewrites enhance receipt-freeness and are incentivized, though limited by protocol constants. \item The ratio of processed to non-processed votes relative to the maximum allowed voters. \end{itemize} % The reward function for the $i$-th sequencer is \[ \sequencerReward_i = R \cdot \left( \frac{\votes_i}{\maxVotes} \right) + W \cdot \left( \frac{\voteRewrites_i}{\totalRewrites} \right), \] subject to the constraints \[ \frac{\voteRewrites_i}{\votes_i} \leq T, \quad \totalReward = R + W, \quad R > W, \] where $T$ is the maximum allowed ratio of rewrites to votes. Rewards prioritize new votes over rewrites, ensuring sequencers cannot maximize profits by simply re-encrypting existing ballots. \paragraph{Penalties.} Sequencers failing to provide required decryption shares or misbehaving face slashing penalties as \[ \slashedAmount_i = s \cdot \stakedCollateral_i, \] where $0 \leq s \leq 1$ is a slashing coefficient. This ensures accountability and discourages free-riding. \subsection{Summary and remarks} The cost model combines four components: base, capacity, duration, and security. It ensures small processes are cost-efficient, large or resource-intensive processes incur higher costs, and impractical setups are excluded. Organizers aim to minimize costs, while sequencers seek to maximize rewards — a natural tension that can be modeled as a strategic game. Analyzing this equilibrium is left for future work. {\color{blue}Move this to Section~\ref{sec:token}?}