Infrastructure Components

It is responsible for holding the staking function to determine validators through independent election, and the election workflow are performed via staking procedure.
Validators are responsible for validating transactions and generating blocks, ensuring the network’s security and the consistency of the ledger. In return, they receive rewards from the gas Fee of transactions.
Staking Frontend.
There are several genesis contracts to help implement staking on Dexit
Reward Register Contract.
The creator of the smart contract should specify the contract address and the address to receive reward.
ValidatorSet contract.
It is a watcher of validators changes It will apply the validator set change. It also stores rewarded gas fee of blocking for validators, and distribute revenue to validators.
System Reward contract.
The incentive mechanism to maintain system contracts. They will get rewards from system reward contract.
Liveness Slash Contract.
The liveness relies on validator set can produce blocks timely when it is their turn. Validators can miss their turns due to any reason. This instability of the operation will hurt the performance of the network and introduce more non-deterministic into the system. This contract responsible for recording the missed blocking metrics of each validator. Once the metrics are above the predefined threshold, the blocking reward for validator will not be award for distribution but shared with other better validators.
Other contracts.
The Dexit may take advantage of powerful governance for example, propose to change a parameter of system contracts. Max Validator, minimum staking amount