DLP Root Staking
Core contract managing staking functionality including stake creation, withdrawal, migration, and reward claiming.
The DLPRootImplementation contract serves as the central hub of the Vana staking ecosystem, managing the core staking functionality for users who want to support DLPs. It coordinates the interactions between stakers, DLPs, and the various specialized contracts in the system, including DLPRootCore, DLPRootEpoch, DLPRootMetrics, and DLPRootTreasury.
The contract enables users to create stakes on DLPs, with stakes tracked by amount, start block, and associated DLP. It implements a sophisticated reward calculation system based on stake duration and the performance of the chosen DLP, with longer stake periods receiving multiplier bonuses. Stakers can close and withdraw their stakes after optional waiting periods, or migrate their stakes to different DLPs, providing flexibility while ensuring system stability.
A key feature is the integrated reward claiming mechanism, where stakers can claim their portion of rewards earned by the DLPs they've supported, with rewards calculated based on stake score relative to total stake scores for that DLP in each epoch. The contract employs checkpoints to track historical values like withdrawal delays and claim delays, enabling accurate historical queries. The entire system is secured through role-based access controls, ensuring that sensitive operations like treasury transfers can only be performed by authorized entities.
Contract Address
Moksha: 0xff14346dF2B8Fd0c95BF34f1c92e49417b508AD5
Vana Mainnet: 0xff14346dF2B8Fd0c95BF34f1c92e49417b508AD5
Updated about 13 hours ago