DLPRootMetrics is a contract that handles performance rating calculations and metrics for DLPs (Decentralized Liquidity Providers) in the system. Key functionalities include:
Managing epoch performance ratings for DLPs
Calculating top-performing DLPs based on both stake and performance metrics
Estimating reward percentages and APY for DLPs
Maintaining a scoring system with configurable weights between stake-based and performance-based ratings
The contract uses a dual rating system where:
Stake Rating: Based on the amount staked
Performance Rating: Based on DLP's performance metrics
The main architectural change in this update is the separation of responsibilities between DLPRoot and DLPRootMetrics. A significant portion of the rating and performance calculation logic has been moved from DLPRoot to DLPRootMetrics, making the system more modular.
Previously, DLPRoot handled both stake management and performance calculations. Now:
DLPRootMetrics: Responsible for performance ratings and metrics calculations
DLPRoot: Focuses on stake management, basic DLP operations, and interfacing with treasury contracts
The reward distribution system has been significantly reworked. DLPRoot now works with separate treasury contracts for rewards and stakes, with reward calculations including both performance-based and stake-based components.
Note: All performance-related events are now emitted by DLPRootMetrics instead of DLPRoot, reflecting the new separation of concerns in the system architecture.
We've improved our DLP Root Contract, making registering a DLP and staking easier. In order for a DLP to be elegible for DLP rewards, they must be registered on this contract.
As we get closer to mainnet launch, our focus this week was getting our key smart contracts audited. We've partnered up with a trusted blockchain security and audit firm Hashlock.
The Satya Network in the Moksha testnet was scaled up this week to keep up with the tremendous proof-of-contribution requests that are being served by the network.
Other notable improvements:
Faucet: Fixed a bug affecting the faucet during heavy use RPC: Made several security improvements across our RPC nodes on Moksha