DLPPerformance

This smart contract is an oracle that stores off-chain calculated DLP performance scores and calculates epoch rewards for DLPs.

This smart contract serves as an oracle system that bridges off-chain DLP performance calculations with on-chain reward distribution in the Vana ecosystem. The contract receives and stores DLP scoring data that has been computed off-chain, including metrics like trading volume, unique contributors, data access fees, and total performance scores for each Data Liquidity Pool during specific epochs. This design allows for complex performance evaluation algorithms to be executed off-chain while maintaining the transparency and immutability of storing the results on the blockchain.

The contract's primary function is to manage epoch-based reward distribution for DLPs based on their performance scores. When performance data is submitted for an epoch, the system automatically calculates each DLP's reward allocation proportional to their total score relative to the epoch's available reward pool. However, there's a critical timing mechanism built into the system - while DLP performances can be recorded throughout an epoch, only the performance data saved immediately after the epoch ends (marked with the finalScores flag) actually determines the reward distribution to participants.

This temporal distinction ensures fairness and prevents gaming of the reward system, as DLPs cannot benefit from performance updates submitted during an active epoch. The oracle effectively acts as a trusted intermediary that validates off-chain computations and translates them into concrete on-chain rewards, creating a hybrid system that leverages the computational efficiency of off-chain processing while maintaining the security and transparency guarantees of blockchain-based reward distribution.


📘

Contract Address

Moksha: 0x847715C7DB37cF286611182Be0bD333cbfa29cc1

Vana Mainnet: 0x847715C7DB37cF286611182Be0bD333cbfa29cc1