Overview
Merkl is a platform designed to streamline and optimize reward distribution in the DeFi space. Merkl can handle multiple incentive providers for the same campaign type, allowing for complex reward structures and broad participation incentives. Here's a step-by-step overview of how Merkl works:
Campaign Creation
An Incentive Provider (IP) creates a campaign using the Merkl Distribution Creator contract. This includes specifying the rules and conditions under which rewards will be distributed. The campaign details are then pushed onchain, ready to start tracking eligible user activity.
User Participation
Users interact with the protocol in various ways (e.g., providing liquidity, lending, borrowing, etc.) to become eligible for rewards as defined by the campaign rules.
Reward Computation
The Merkl Engine, an offchain component hosted by Angle Labs, regularly collects onchain and offchain data to measure user behavior. At fixed intervals, the Merkl Engine processes the collected data to update reward distributions. This ensures that users can claim new rewards multiple times a day without needing to stake tokens or perform additional onchain actions. Based on the data, the engine calculates the reward distribution, aggregates it into a merkle tree, and compresses it into a merkle root. The computed merkle root is then pushed onchain. Following the merkle root update, a dispute period allows anyone to verify the reward distribution and contest it if necessary.
Reward Distribution
Once the dispute period is over and the merkle root is validated, users can claim their rewards. The rewards from potentially multiple campaigns are aggregated, enabling users to claim all their rewards in a single transaction. Users can track their active positions and rewards through the Merkl user dashboard, providing a transparent view of their earnings and investments.
For a more detailed and technical explanation of the Merkl protocol, visit the Architecture and Technical Overview page for an in-depth look at Merkl's structure and technical specifics.
Last updated