πŸ”ΈContracts

The network DPos consensus is managed by this contract, overseeing critical functions such as storing the current validator set and initiating the selection of a new validator set at the cycle's conclusion. To update the validator set, the contract employs logic that involves selecting a random snapshot from the snapshots taken throughout the cycle.

In addition to its role in managing the consensus, the contract is tasked with handling staking, delegating, and withdrawing funds related to pending validators. These pending validators are distinguished by having staked an amount exceeding the minimum required to attain the status of a network validator.

The stake amount for a validator is determined as the aggregate of the staked and delegated amounts to its specific address.

This contract is based on non-reporting ValidatorSet described in Parity Wiki.

Minimum stake amount = 42,000 SatNode token

Cycle duration blocks = 34560 (approximately 2 days)

This contract is responsible for generating and distributing block rewards to the network validators according to the network specs (5% yearly inflation).

Another role of this contract is to call the snapshot/cycle logic on the Consensus contract.

This contract is based on BlockReward described in Parity Wiki.

This contract is responsible for opening new ballots and voting to accept/reject them. Ballots are basically offers to change other network contracts implementation.

Only network validators can open new ballots, everyone can vote on them, but only validator's votes count when the ballot is closed.

Ballots are opened/closed on cycle end.

Max number of open ballots = 100

Max number of open ballots per validator = 100 / number of validators

Minimum ballot duration (cycles) = 2

Maximum ballot duration (cycles) = 14

Last updated