DLP Root Epoch

Handles epoch-based operations including creation, finalization, and reward distribution for DLPs across time periods.

The DLPRootEpoch contract manages the temporal structure of the Vana ecosystem through a system of epochs, which are fixed time periods (measured in blocks) during which DLPs can participate and earn rewards. It handles epoch creation, finalization, and the distribution of rewards to eligible DLPs based on their performance and stake amounts within each epoch.

Each epoch has a defined start and end block, a total reward amount to be distributed, and tracks participating DLPs along with their stake scores. The contract enables dynamic epoch creation, ensuring the system always has future epochs available for participation. When an epoch ends, it can be finalized, which locks in the participating DLPs and their metrics, and triggers the reward distribution process based on the stake scores and performance metrics from DLPRootMetrics.

The contract implements sophisticated reward calculation and distribution mechanisms that account for both the stake amount and performance rating of each DLP. It provides functions to query historical data about epochs and DLP participation, allowing for transparent tracking of rewards and performance over time. The epoch structure is configurable, with adjustable parameters like epoch size, reward amount, and maximum DLPs per epoch, providing flexibility to adapt the protocol as the ecosystem grows.


📘

Contract Address

Moksha: 0xc3d176cF6BccFCB9225b53B87a95147218e1537F

Vana Mainnet: 0xc3d176cF6BccFCB9225b53B87a95147218e1537F