# Merkl Studio: Full Guides > Source: https://studio.merkl.xyz/guides # Private LP Deals Through Merkl: Why and How > Category: Getting started > URL: https://studio.merkl.xyz/guides/getting-started/private-lp-deals Companies regularly negotiate liquidity directly with large liquidity providers (LPs): a committed amount of liquidity in exchange for an agreed rate. It is one of the fastest ways to bootstrap a new market or guarantee liquidity depth from day one. Why run these deals through Merkl? A neutral engine computes what each LP is owed, payment streams in real time, and the deal stays confidential. ## What is a private LP deal A private LP deal is a negotiated agreement between a company and a specific liquidity provider. The LP commits capital to a pool, market, or vault. In return, the company commits to an agreed rate, almost always negotiated in dollar terms. These deals exist everywhere in onchain finance, but the payment side has typically been handled by hand: a spreadsheet to track the liquidity provided, and a transfer from the company's treasury at the end of the deal period. ## The limits of manual settlement Four structural problems come with settling these deals manually. ### Computing what is owed is hard ❌ Liquidity moves. An LP deposits 50k, adds 100k, withdraws part of it, and the amount owed has to reflect all of it, time-weighted. Running this computation by hand is error-prone and does not scale when several LPs enter and exit at different times. The paying team then has to convince each LP that its numbers are right, and disagreements are common. ### Payment comes last ❌ The LP provides liquidity on day one and gets paid weeks or months later. Until then, the LP carries counterparty risk on the full amount, and delays are frequent. ### Trust is asymmetric ❌ The LP's side of the deal is verifiable onchain from the start. The company's side is a promise. Nothing guarantees the budget exists, or that it will be paid without friction. ### The payer carries the volatility ❌ Deals are negotiated in dollars, but LPs are very often paid in the company's native token. If the token depreciates over the period, the company has to pay out more tokens at settlement to reach the promised dollar amount. The longer the period, the bigger the exposure. And sometimes the token is not even live yet: the deal starts before the token exists. ## How Merkl solves it Running the deal as a Merkl campaign flips all four problems. ### A trusted third party runs the computation ✅ The Merkl engine measures each address's liquidity over time and computes what is owed, continuously, following the campaign rules both parties agreed on. **Deposits, top-ups, and partial withdrawals are all reflected automatically**, whether the deal covers one LP or dozens entering at different times. Neither side has to produce a spreadsheet or convince the other of its math. ### Paid in real time ✅ The LP starts accruing from the first block of the campaign and can claim at any time. There is no end-of-period settlement, so there is nothing to wait for. ### Funds are deposited upfront ✅ The campaign budget is deposited in Merkl's Distributor contract at creation. The LP knows the money is there and will be distributed automatically according to the campaign's conditions. Merkl sits between the two parties as a neutral distribution layer: the company cannot delay or renegotiate the payment, and the LP cannot claim more than the terms allow. ### No volatility exposure for the payer ✅ Because payment streams continuously at current prices, the company never accumulates a dollar-denominated debt in a depreciating token. With a fixed-rate distribution, the engine converts the agreed dollar rate into tokens day after day, at the price of the day. The rate promised in dollars is the rate paid, whatever the token does over the period. And if the reward token is not live yet, the deal can run as a pre-TGE campaign: Merkl tracks each LP's accrual from day one, and the amounts become claimable once the token launches. ## Setting it up in practice A private LP deal is a standard Merkl campaign with two things added: a whitelist and the privacy option. Any campaign type works (a lending market, a liquidity pool, a vault). 1. Restrict the campaign to the deal's addresses. Add the LP's addresses to the campaign whitelist. As soon as a whitelist is set, every other address is implicitly excluded, so only the negotiated parties earn from this budget. 2. Make the campaign private. Add the privacy option to the campaign configuration. The campaign's parameters, rules, and eligibility stay hidden from the public. You control who can view the deal: the LP sees their own terms and tracks their accrual, and you can grant view access to internal addresses, auditors, or partners. 3. Recommended: manage the whitelist via API. A whitelist written directly in the campaign can only be changed by overriding the campaign onchain. If the deal may evolve (new addresses, additional LPs), manage the whitelist via the Merkl API instead: add or remove addresses with a simple API call, no onchain transaction, and changes propagate within roughly two hours. This is enabled by the Merkl Key Value Store feature, and the list stays confidential. ### Example configuration Below is the configuration of a real private LP deal that ran through Merkl, anonymized. It pays a fixed rate in a stablecoin on a lending market: ```json { "distributionChainId": 1, "computeChainId": 1, "creator": "0x1234567890AbcdEF1234567890aBcdef12345678", "campaignType": 47, "market": "0xaaaa000000000000000000000000000000000000000000000000000000000000", "rewardToken": "0x2222222222222222222222222222222222222222", "amount": "10000000000", "startTimestamp": 1790000000, "endTimestamp": 1792600000, "computeScoreParameters": { "computeMethod": "genericTimeWeighted" }, "distributionMethodParameters": { "distributionMethod": "FIX_APR", "distributionSettings": { "apr": "0.05", "rewardTokenPricing": true, "targetTokenPricing": true } }, "whitelist": [ "0xABcdEFABcdEFabcdEfAbCdefabcdeFABcDEFabCD" ], "options": { "privacy": { "optionKey": "privacy", "creatorCanView": true, "recipientsCanView": true, "authorizedAddresses": [ { "address": "0x9876543210FedCba9876543210fEdcBA98765432", "canManageAccess": true } ] } } } ``` The whitelist restricts the campaign to the LP's address. Under the privacy option, `recipientsCanView` lets the LP see their own terms and track their accrual, and `authorizedAddresses` grants view access to internal addresses; everyone else sees nothing. `FIX_APR` with pricing enabled pays the agreed rate in tokens at current prices, continuously. The easiest way to create a private campaign is through the dedicated templates in Merkl Studio, which include the privacy configuration by default. ## What each party sees | Party | Visibility | | --- | --- | | The LP | Their own terms and accrual, and nothing else | | The public | Nothing. The campaign does not appear in the Merkl app | | The creator and authorized addresses | The full campaign configuration | Because private campaigns flow through the same Distributor contract as every public campaign on Merkl, they are mixed into a large volume of transactions across hundreds of tokens. Correlating a specific deposit with a specific claim is computationally difficult, which is what keeps the deal confidential onchain, not just in the app. This setup is already used in production, including by leading stablecoin issuers. --- # How a Merkl campaign is built: understanding the configuration > Category: Getting started > URL: https://studio.merkl.xyz/guides/getting-started/how-merkl-campaigns-are-configured Every distribution that runs on Merkl, from a simple reward on a single token to a multi-layered program spanning several lending markets, comes down to the same thing: a campaign configuration. **A configuration is the set of inputs that fully describes a campaign.** It says what activity is being rewarded, how the budget is spent over time, how individual contributions are turned into reward shares, who qualifies, and any special handling layered on top. This article walks through how a configuration is put together. Once the basics are clear, even the most complex programs are just the same parts, combined differently. ## What a configuration actually is Think of a configuration as a recipe. It is a structured list of ingredients that tells the Merkl engine exactly how a campaign should behave. Nothing about a campaign is improvised. Every behavior you see, the target asset, the rate, the eligibility rules, comes from a field in this recipe. The useful thing to understand first is that a configuration is read on two layers: - **Standard fields** are the simple, top-level settings that almost every campaign shares. They hold simple values, such as a wallet or token address, an amount, or a date. Think of them as the frame around the campaign. - **Structured inputs** are the richer building blocks. Each one is its own object with its own schema, and each one configures a specific part of how the campaign works. Let's look at each. ## The standard fields: the frame around a campaign Standard fields are present on most campaigns and take simple values. They define the basic shape of the program: who runs it, what is being paid, how much, where, and when. - `creator`: the address that owns and manages the campaign. - `rewardToken`: the address of the token being paid out as rewards. - `amount`: the total budget to be distributed. - `distributionChainId`: the chain where rewards are distributed. - `computeChainId`: the chain where user activity is tracked. It can differ from the distribution chain for cross-chain campaigns. - `startTimestamp` and `endTimestamp`: when the campaign starts and ends, as Unix timestamps. - `blacklist` (optional): a list of addresses excluded from receiving rewards. - `whitelist` (optional): a list of addresses allowed to receive rewards. If it is set, everyone else is excluded. ## The structured inputs: the building blocks The standard fields tell Merkl the shape of the campaign. The structured inputs tell it how the campaign actually works. Each is a self-contained object backed by its own schema, a published definition of exactly which fields it accepts, which means each can be as simple or as detailed as the program requires. Merkl groups them as follows: | Structured input | What it describes | | --- | --- | | **Campaign type** | The activity being rewarded and the parameters it accepts | | **Distribution method** | How the budget is spent over time | | **Compute-score method** | How individual contributions become reward shares | | **Hook type** | Boosts and advanced customizations on top of the campaign | You will rarely touch all of them at once. Simple campaigns lean on the first two. The rest are there when a program needs more precision. Note that not every campaign type works with every distribution method, and some hooks only apply to certain types. Let's take them one at a time. ### The campaign type The campaign type answers the most basic question: **what behavior are you rewarding?** Different types reward different activity. Some reward providing liquidity in a concentrated liquidity pool, like Uniswap V3. Others reward lending or borrowing on a protocol such as Morpho. Some reward holding a token over time, like wBTC or ETH. Others distribute a one-off airdrop to many addresses at once. Each type also defines the parameters it expects, which it carries in its own structured object. This is why the campaign type is a structured input rather than a standard field. The asset you are targeting, for example, lives inside the campaign type's parameters, because what counts as a valid target depends entirely on which type you picked. If you are exploring what is possible, the list of supported types is published live in [the schema explorer](https://developers.merkl.xyz/resources/schemas). ### The distribution method Once you know what you are rewarding, the distribution method decides **how the budget is spent over the life of the campaign.** This is where two very different programs can share the same campaign type but behave in opposite ways. A couple of common approaches: - A target-APR method tells Merkl to spend whatever it takes to keep the opportunity at a chosen rate. If activity grows, spend goes up. If it shrinks, spend goes down. The rate stays steady. - A fixed-rewards method spends a set amount over the period, regardless of how much activity shows up. The budget is fixed, the resulting rate floats. Each method carries its own settings, such as the target rate or whether token pricing is used in the calculation. Choosing a method is really a choice about what you want to hold constant: the rate, or the spend. ### The compute-score method The first two blocks define the campaign at the level of the whole opportunity. The compute-score method works at the level of each individual participant. Its job is to **turn raw activity into shares.** Two wallets supplying liquidity in the same pool may have contributed different amounts for different lengths of time. The compute-score method decides how those differences translate into a portion of the rewards. It is the difference between "this pool earned X" and "this specific wallet earned Y." For most standard campaigns the default scoring does exactly what you would expect, rewarding participants in proportion to their contribution. The method becomes interesting when a program wants to weight things differently. ### Hooks and customizations Hooks are **where a campaign gets fine-tuned beyond the basics.** They sit on top of everything else and adjust how the distribution behaves. This is distinct from simple eligibility. Allow lists and deny lists are already handled by the `whitelist` and `blacklist` standard fields. Hooks cover the more advanced cases. Common ones include boosting rewards for users who hold a specific token or NFT, or restricting eligibility to addresses that hold a minimum amount of a token over a set period, for example only rewarding wallets that hold at least 500 of a token for 30 days. The full list of available hooks is published in [the schema explorer](https://developers.merkl.xyz/resources/schemas). If a campaign behaves in a way that feels custom, a hook is usually the reason. ## What a configuration looks like in practice Put the common pieces together and a basic configuration is surprisingly compact. Here is a minimal one for a token-based campaign: ```json { "campaignType": 60, "targetToken": "0xBdb9300b7CDE636d9cD4AFF00f6F009fFBBc8EE6", "computeChainId": 8453, "distributionChainId": 8453, "distributionMethodParameters": { "distributionMethod": "MAX_APR", "distributionSettings": { "apr": "0.08", "rewardTokenPricing": true, "targetTokenPricing": true } } } ``` You can see both layers at work. The `computeChainId` and `distributionChainId` are standard fields, plain values that frame the campaign. The `campaignType` together with its `targetToken` is the campaign type structured input, and `distributionMethodParameters` is the distribution method structured input, each an object with its own settings. A full configuration also carries the remaining standard fields such as `creator`, `rewardToken`, `amount`, and the start and end timestamps. You may notice that some of these values are plain numbers. Each campaign type has a numeric identifier in Merkl, and `60` is the one for a token-based (ERC20) campaign. The chain fields use chain IDs, the standard numbers that identify each network across the ecosystem, so `8453` is Base. Using identifiers like these lets a configuration point to a specific type or chain without ambiguity. Read in plain language, this configuration rewards anyone holding Aave cBTC (the `targetToken`), with activity measured and rewards paid out on Base, and it spends the budget to keep that opportunity at an 8 percent APR (`MAX_APR` set to `0.08`). No scoring overrides and no hooks. That is a complete, working campaign. ## The schemas are the source of truth You do not have to memorize any of this. Merkl publishes the exact structure of every input as machine-readable schemas, and they are the definitive reference for what each campaign type, method, and hook expects. The [schema explorer](https://developers.merkl.xyz/resources/schemas) lets you browse every structured input and inspect the exact fields each one accepts. These schemas are read live from the public API, so they always reflect what is currently supported. If a field is in the schema, it works. If it is not there, it is not supported yet. This matters because it means a configuration is never a guessing game. Whatever you can build, the schema describes it precisely. ## Conclusion The reason this model is worth understanding is that it scales. The same standard fields and structured inputs behind a simple single-token reward also power the most intricate programs on Merkl. There is no separate system for complex campaigns, just one configuration model where complexity is a matter of which inputs you reach for. That makes it a powerful way to read any campaign: once you see it as a set of standard fields and structured inputs, even the most advanced ones stop being a black box. --- # Keep custody of your tokens with token wrappers > Category: Getting started > URL: https://studio.merkl.xyz/guides/getting-started/keep-custody-with-wrappers ## Merkl is infrastructure, not a custodian In most Merkl setups, you prefund the campaign upfront by transferring your reward tokens to Merkl's distribution contracts. For **large clients and specific setups**, however, we offer a **custody-preserving path** where you never have to hand over the reward tokens. Merkl remains a distribution layer in both cases (it computes who deserves what and publishes the Merkle proofs), and in this custody-preserving setup the tokens stay in your treasury, multisig, or any address you control until the moment a user actually claims. This is made possible by **token wrappers**: small contracts that wrap your reward token and pull the underlying funds from your address on claim via a standard ERC-20 allowance. From the user's perspective, nothing changes: they still claim the underlying token. From your perspective, the budget never leaves your control. ![Token wrapper mechanism schema](../images/getting-started/keep-custody-with-wrappers-schema.jpg) ## Why this matters - **No prefunding required.** No upfront transfer to a Merkl contract. You only spend what's actually claimed. - **Unclaimed tokens stay with you.** Users who never claim don't cost you anything, and leftovers remain in your treasury. - **Adjust at any time.** Revoke the allowance to pause, or top up your treasury to extend. You don't need a Merkl operation to change course. - **Fits any governance process.** The approval can come from a multisig, a DAO vote, or any custom signer, using the same pattern you already have. ## How to deploy a wrapper Deploy one directly from the Studio in a few clicks: [**Studio → Token Wrappers**](/wrappers). Four templates are available: - **Pull-on-Claim**: the standard custody-preserving wrapper. Tokens stay in your address, pulled on claim. Best for airdrops, TGEs, and campaigns with uncertain final spend. - **aToken Unwrapper (Aave)**: same mechanism, tailored for Aave v3 aTokens. Withdraws from Aave on claim so users receive the base asset. - **Auto-Vault (ERC-4626)**: pulls from your address and deposits into an ERC-4626 vault on claim, so rewards compound from day one. - **Native Token Unwrapper**: distribute wETH, auto-unwrap to native ETH on claim. Once deployed: 1. **Approve** the wrapper contract to spend the underlying token from the address holding your treasury. 2. **Hold** enough underlying tokens in that address to cover expected claims. 3. **Launch** your campaign on Merkl using the wrapper as the reward token. That's it: no token ever leaves your address unless a legitimate user claims it. ## Practical example: renew campaigns without waiting for leftovers A common pain point without wrappers: when a campaign is about to end, you can't recycle the undistributed budget into the next one until the current campaign closes and the leftovers are returned to your wallet. With a Pull-on-Claim wrapper, you sidestep the wait entirely. Setup: 1. **Deploy** a Pull-on-Claim wrapper for your reward token. 2. **Launch** your first campaign with a 100k token budget using the wrapped token. 3. **One week later**, the campaign has a few hours left and you can see only ~80k will be distributed, leaving 20k undistributed. 4. **Without a wrapper:** you'd have to wait for the campaign to end, claim back the 20k leftovers, and only then launch the next campaign. 5. **With the wrapper:** create the renewal campaign immediately with another 100k wrapped tokens. 6. **Leave the 20k leftovers alone.** They are wrapper tokens, so they are pure accounting: no user claims them, so the wrapper never pulls the matching underlying tokens from your treasury. There is nothing to claim back. Net effect: zero downtime between campaigns, no idle capital, and no leftover recovery. Your treasury only pays for what users actually claim. ## Learn more - [**Keep Custody with Token Wrappers**](https://docs.merkl.xyz/merkl-mechanisms/keep-custody-with-token-wrappers) in the Merkl docs: the principle, the wrapper types, and time-gated claims for TGEs. - [**Token wrappers developer guide**](https://developers.merkl.xyz/crafting-campaigns/token-wrappers): contracts, constructor arguments, and the onchain calls. --- # How to run incentive campaigns that actually work > Category: Getting started > URL: https://studio.merkl.xyz/guides/getting-started/campaign-best-practices > **Incentives are fundamental to the success of any company or project operating onchain.**
> ✅ Do it right, and you unlock exponential growth and soaring TVL
> ❌ Do it wrong, and you waste capital and resources ## Set clear goals 🎯 Launching incentives requires careful planning. From the very beginning, it's essential to define **clear, and precise goals** for what you want to achieve. Every goal should be measurable and tied to KPIs you can easily track. To monitor your campaigns effectively, set up scripts to analyze key metrics such as TVL per $, APR evolution relative to TVL, and more. One thing is certain: you can't hit a target you don't measure. ## Focus rewards on your bottleneck 🔻 A good approach for launching incentives is to address the weak points. To do this, identify the limiting factor that currently prevents your project from scaling: is it a lack of lenders, borrowers, specific liquidity providers? Your rewards should be heavily and disproportionately concentrated on that weaker side. Targeting this constraint maximizes the leverage of your incentive budget, ensuring every distributed reward directly contributes to unlocking your project's full growth potential. ## Keep incentives simple and linear 🪶 Choose your campaign participation parameters wisely. Every added layer of eligibility or conditional rule creates friction, causing genuine users to drop off or become frustrated by unclear requirements. More critically, complexity is an open invitation for malicious actors. Because you are distributing capital, any convoluted set of rules, or exclusions, will inevitably be exploited by bots and mercenary capital. To safeguard your budget and maintain control, prioritize transparent, linear structures that eliminate loopholes and maximize participation without requiring complex verification. ## Don't distribute liquid tokens if undervalued 🔒 If your project is undervalued or not yet valued, allow some time for market discovery by distributing non-transferable or vested tokens. Distributing liquid tokens would attract short-term speculators who may immediately dump rewards, whereas delaying gratification weeds out opportunists and builds a committed community of believers. > **Euler** > > Euler is distributing rEUL, a wrapped version of its native EUL token, as reward. > One EUL token can be converted into one rEUL, but the reverse process is not always straightforward. When users receive rEUL, they can immediately redeem 0.25 EUL per rEUL, while the remaining 0.75 EUL can only be claimed after a 6-month vesting period. Additionally, rEUL is non-transferable, meaning it cannot be sold or traded, thus preventing the creation of a secondary market. ## Be cautious with points ❗ Points are a popular incentive, especially for projects that have no established value yet. However, points come with important downsides. First, points don't display an APR, so users can't see what they're earning. They can also be mispriced: undervalued points may lead you to overpay for liquidity, while overvalued points can create negative sentiment during an airdrop and increase selling pressure. Additionally, points require more management and operational work on your side compared to standard token incentives. ## Understand your cost of liquidity ⚖️ Incentive campaigns follow a supply and demand dynamic: users expect to be paid for the risk they take, while your goal is to pay as little as possible for the liquidity you need. Over time, campaigns converge toward an equilibrium APR. This APR depends on risk, underlying assets, protocol and chain maturity, and market conditions. Check comparable campaigns in the Merkl App to estimate this equilibrium and design incentives that attract liquidity without overpaying. Benchmark against truly similar opportunities: early-stage projects should compare themselves to peers, not to mature ecosystems with deep liquidity. ## Start small, scale fast 📈 When launching an incentives program from scratch, TVL is often low, which can mechanically result in very high APRs. At this stage, supply and demand for yield are not yet stabilized, meaning you risk significantly overpaying for liquidity. Starting with a smaller incentive budget allows the market to find its footing without excessive spend. Once you see real traction, you can scale rewards up. This is also why short, frequently renewed campaigns work best. The long-term objective is for liquidity to remain even after incentives fade. To achieve this, reduce rewards gradually and progressively until organic yields take over. In lending markets, this typically means borrower-paid rates replacing the bonuses initially paid to lenders. ## Deploy incentives early 🌅 Incentives are most effective in the bootstrapping phase, when liquidity is thin and adoption is limited: launching a new collateral, an asset, or a new protocol on a chain. Early-stage opportunities offer higher yields, accelerate price and risk discovery, and tap into untapped user pools. Strategically deploying incentives at this stage maximizes adoption and network effects, laying a strong foundation for future scaling. ## Don't neglect native APRs 🏦 Incentives should be used to attract users, not just to inflate TVL. While TVL signals growth, what really matters are native APRs and protocol-generated fees. Users chase sustainable yields: incentives can bring them in, but high native APRs are what make them stay. Keep a close eye on trading APRs from actual DEX volume, lending APRs from onchain markets, and fee generation on perpetual DEXes. By focusing on these, you ensure your incentives drive meaningful, long-term engagement rather than temporary liquidity spikes. ## Focus on passive users 🪑 Retention is the hardest challenge. The most active users often represent mercenary capital chasing rewards, moving on as soon as incentives dry up. Focus instead on passive users. Their capital is sticky and less sensitive to market fluctuations. Invest in attracting them from external platforms, since they are less likely to visit your frontend frequently. The best way to retain them is through campaigns that run as continuous programs funded by real, recurring revenue. Sustainable incentives give users confidence to stay long-term, rather than moving liquidity every week to chase the highest APR. By prioritizing long-term value over short-term chasing, your program builds loyalty and engagement that lasts well beyond the initial rewards. > **Aave** > > With the Merit program, Aave is distributing incentives from actual DAO revenues. This model creates a loyalty loop built on sustainable value-sharing rather than temporary boosts. ## Bring bluechip protocols on board 💎 (for chains) If you are a chain running incentive campaigns, take established, reputable protocols like Aave or Morpho into account when allocating your incentive budget. Incentives are far more efficient when distributed through trusted players. Large LPs and users naturally engage with protocols they know and respect, unlike native or unproven projects where adoption is slow and risky. By directing rewards toward bluechip protocols, your campaign leverages credibility, maximizes participation, and ensures every reward has a meaningful, lasting impact. ## Don't build in-house 🤝 Building in-house incentives may seem logical, but the actual costs tell a different story. You need a dedicated team of developers to build, secure, and maintain the infrastructure. It's a long-term commitment, not a one-time project, and it's resource-intensive. Using a platform like Merkl drastically cuts your time to market to just a few days. You can quickly test ideas, iterate, and scale. It's cheaper than assembling an in-house team and requires no maintenance. Plus, your campaign benefits from Merkl's distribution, reaching 200k MAU actively seeking yield opportunities on the Merkl App. ## Team up with experts 💼 If you're unsure where to start with your incentives strategy (what to reward, how to design it, or how to optimize performance), dedicated advisory teams specializing in DeFi strategies can help you plan and monitor your campaigns effectively. They can also assist if you lack tracking or KPI measurement capabilities, ensuring you can monitor results, iterate quickly, and make data-driven decisions that maximize the impact of every reward. Merkl can also help directly. With [Merkl services](https://merkl.xyz/services/distribution), our team pressure-tests your strategy, recommends calibrations based on what has worked across 50,000+ campaigns, and can configure and run your campaigns for you, while your team keeps the final call. > **Arbitrum** > > As part of the Arbitrum DeFi Renaissance Incentive Program (DRIP), Arbitrum works with Entropy Advisors to design the incentive strategy. Merkl provides the rewards infrastructure, running campaigns according to Entropy's plan. This setup allows Arbitrum to take a hands-off approach, letting Entropy handle all performance tracking and reward optimization. --- *This guide is inspired by [@totomanov's thread](https://x.com/totomanov/status/1937224679594557506?s=20) and the insights we've gathered at Merkl from running 50,000+ incentive campaigns for 1,000+ clients.* *The content of this page is provided for informational and illustrative purposes only. These recommendations and tips focus on incentive campaign design and management and do not constitute investment or financial advice under any circumstances. Campaign creators are solely responsible for the decisions they make.* --- # What budget should you set for your campaign? > Category: Getting started > URL: https://studio.merkl.xyz/guides/getting-started/campaign-budget ## Overview The ideal campaign budget depends on your specific objectives and the distribution method you choose. Campaign budgets follow a natural supply-and-demand dynamic: liquidity providers want to maximize their rewards, while campaign creators aim to minimize costs. As a result, TVL typically scales proportionally with the reward budget you allocate. ## Account for fees Depending on your campaign type, you need to account for fees differently. See the [fees section in the Merkl docs](https://docs.merkl.xyz/distribute-with-merkl/fee-model) for details on how fees apply to your specific campaign type before finalizing your budget. ## Choose the right distribution method If you're concerned about over-distributing rewards early in your campaign, consider using a [**capped APR campaign**](https://docs.merkl.xyz/merkl-mechanisms/distributions#-capped-reward-rate-campaigns). This approach ensures you don't exhaust your budget too quickly if TVL starts low: rewards are distributed at a fixed rate relative to TVL rather than depleting a fixed token amount. ## Benchmark APRs To gauge appropriate reward levels, you can: - [**Browse existing campaigns**](https://app.merkl.xyz) on the Merkl app to see typical APRs in your category - [**Use Merkl's APR simulator**](/simulators?open=apr) to model how different reward budgets translate to APRs at various TVL levels - **Adjust your budget** based on competitive rates and your growth targets ## Start small, iterate often We recommend launching shorter campaigns initially (e.g., 2 weeks) to test performance and gather data. You can then create follow-up campaigns with optimized parameters based on actual TVL, user engagement, and APR effectiveness. This iterative approach minimizes risk and maximizes ROI. --- # Testing your campaign before going live > Category: Getting started > URL: https://studio.merkl.xyz/guides/getting-started/test-campaigns ## Overview Merkl is not deployed on testnets, but you can still run test campaigns using our test token: **aglaMerkl**. This lets you validate the full flow and integrate our data before your real campaign starts. ## Before you start Test campaigns are **not mandatory**. They're available to help you experiment with how Merkl works using valueless tokens. A few things to keep in mind: - Test campaigns **will not appear** on the Merkl app and are automatically filtered out from the interface - Since they consume computation resources, please **only use this feature when there's a clear need** - aglaMerkl has no monetary value and is only intended for creating test campaigns - Test tokens have **no price**, so test campaigns will not have APRs. To validate an APR integration, use an existing live campaign instead ## Step-by-step ### 1. Get the test token Send us a message and we'll provide you with aglaMerkl tokens. ### 2. Create your test campaign Create your campaign normally on Merkl Studio using aglaMerkl as the reward token. A **campaign ID** will be generated at creation, keep it handy. ### 3. Verify via the API While the campaign won't show up in the Merkl app, you'll be able to check everything is working properly via the Merkl API, using the campaign ID generated at creation. Refer to the [API integration page in the Merkl docs](https://docs.merkl.xyz/integrate-merkl/app) for details on how to query campaign data effectively. Test campaigns and opportunities are **filtered out of API responses by default**. Append `?test=true` to your requests to include them. Make sure to verify: - **Distribution is functioning as expected**: rewards are being computed and attributed correctly - **Key metrics like TVL are correctly computed**: the protocol data is being indexed properly ## Once everything looks good If the API returns correct data, it will appear correctly in the Merkl frontend once your real campaign is live. You're ready to launch! If you need help setting up your first test campaign, feel free to reach out to us. --- # Your first campaign > Category: Getting started > URL: https://studio.merkl.xyz/guides/getting-started/first-campaign ## Goal Launch your first incentive campaign on Merkl Studio in under 10 minutes. By the end of this guide, you'll have a live campaign rewarding users on any supported protocol. ## Prerequisites - A wallet with enough tokens to fund the campaign rewards - Your reward token approved on the chain you're targeting - Basic understanding of which protocol/pool you want to incentivize ## Step-by-Step ### 1. Connect your wallet Head to [Merkl Studio](/) and connect your wallet using the button in the top-right corner. Merkl supports all major wallets through WalletConnect, Coinbase Wallet, and injected providers. > **Pro tip:** Make sure you're connected to the correct chain before starting the campaign creation flow. ### 2. Choose your campaign type Click **Create** to open the campaign category selection. You'll see several options: - **Concentrated Liquidity**: for Uniswap V3/V4 and similar CLAMM pools - **Token Holding**: for rewarding holders of any ERC20 token - **Lending & Borrowing**: for protocols like Aave, Morpho, Euler - **Airdrop**: for distributing tokens to a predefined address list Pick the category that matches your use case. ### 3. Configure your campaign Each campaign type has a dedicated creation flow. At minimum, you'll configure: - **Target opportunity**: the pool, token, or market you want to incentivize - **Reward token**: the token you'll distribute as rewards - **Duration**: how long the campaign will run - **Budget**: total reward amount for the campaign period ### 4. Review and Launch Before submitting, review all parameters carefully: - Double-check the target opportunity address - Verify the reward amount and duration - Confirm the distribution formula if applicable Once satisfied, click **Create Campaign** and approve the transaction in your wallet. ### 5. Monitor performance After creation, head to the **Manage** tab to track your campaign: - View real-time distribution metrics - Check participant counts and reward claims - Monitor remaining budget and time ## Common mistakes - **Wrong chain**: always verify you're on the correct network before creating a campaign - **Insufficient allowance**: make sure your reward token has enough allowance for the Merkl contracts - **Too short duration**: campaigns under 24 hours may not attract enough participation. Start with at least 7 days - **Missing token approval**: the reward token must be whitelisted on Merkl. Check the docs if your token isn't available --- # Earn product incentives: which distribution model is right for you? > Category: Earn product > URL: https://studio.merkl.xyz/guides/campaigns/earn-products ## Wallet incentive models Merkl enables two distinct integration models for wallets looking to enhance user yields or partner with DeFi protocols. ### 1. Tailored rewards for wallet users Merkl enables wallets to run campaigns that directly reward their users while keeping full control over the incentive strategy. It automatically calculates rewards and supports flexible boosting rules based on onchain data (wallet balance, transaction history, etc), and offchain criteria (user tier, geographic location, or KYC status, etc). This allows wallets to create tailored experiences, for example offering premium users higher yields or targeting specific user segments with customized incentives. > **Use case:** A wallet wants to reward its most active users with bonus yields on stablecoin deposits. Merkl ensures higher rewards are given to users who maintain larger balances or hold the wallet's native token, creating a personalized and engaging experience. ### 2. Rewards that scale with user activity Merkl enables performance-based partnerships between wallets and protocols, where incentive spend scales with actual user adoption. A protocol can promise an extra X% APR to users coming from a specific wallet, within a fixed budget. Merkl continuously tracks how much liquidity those wallet users actually bring to the protocol and calculates exactly how much rewards are required to deliver the promised APR. If participation is lower than expected, the protocol automatically spends less. Incentives always scale with real usage. Merkl acts as a neutral settlement layer between wallets and protocols. It handles all onchain calculations and reward distributions, removing the need for manual tracking or trust assumptions between the wallet and protocol. > **Use case:** A protocol sets a $100k incentive budget to offer wallet users an extra 5% APR on a DEX liquidity pool. This budget would be fully used if wallet users supplied $2M in liquidity. If they instead supply only $500k, Merkl automatically adjusts the incentives so the protocol spends $25k, while wallet users still receive the full 5% APR. ## Distribution options Merkl offers three distinct approaches to distribute incentives, each with unique mechanics and tradeoffs. Choose based on your priorities around user experience, token economics, and technical integration requirements. ### 1. Direct distribution Distribute incentive tokens directly to users' wallets. Users either claim rewards manually or receive them via daily auto-claiming. **Advantages:** - Clear reward visibility: users see exactly what they've earned - Claim mechanics highlight the extra rewards, increasing engagement - Reduced sell pressure since tokens aren't automatically converted - Flexible boosting based on onchain or offchain metrics (e.g., higher yields for specific user segments) **Tradeoffs:** - Requires frontend integration to enable claiming functionality - Users receive multiple tokens, increasing wallet management complexity - With auto-claiming enabled, users may be confused by unexpected tokens appearing in their wallets - In countries where crypto transfers are taxed, claiming tokens can be considered a taxable event ### 2. Vault auto-compound Rewards flow to the vault contract, where the vault provider periodically claims, sells incentive tokens, and compounds them back into the principal asset. **Advantages:** - Zero frontend changes needed: simply display the boosted APR provided by the vault - Completely passive for users: no actions required to earn enhanced yield **Tradeoffs:** - Creates systematic sell pressure on the incentive token through regular conversions - No ability to implement user-specific boosting based on external criteria ### 3. Merkl auto-compound The incentive budget purchases vault shares upfront, which are then distributed directly to users with auto-claiming enabled. **Advantages:** - Zero frontend changes needed: simply display the boosted APR provided by the vault - Completely passive for users: no actions required to earn enhanced yield - Supports user-specific boosting based on onchain or offchain metrics, just like direct distribution **Tradeoffs:** - Entire incentive budget is converted to vault shares at campaign launch, creating immediate selling pressure - In countries where crypto transfers are taxed, claiming tokens can be considered a taxable event ## Common mistakes - **Choosing auto-compound without considering sell pressure**: if your incentive token has low liquidity, vault auto-compound can create significant price impact. Consider direct distribution instead. - **Ignoring user-specific boosting**: direct distribution and Merkl auto-compound both support boosting by user segment. Use this to maximize ROI by targeting high-value users. - **Overestimating participation**: performance-based models are designed to scale with actual usage. Set realistic budgets based on expected adoption, not best-case scenarios. --- # Redistribute stablecoin yield with one simple, flexible setup > Category: Stablecoin > URL: https://studio.merkl.xyz/guides/stablecoin/redistribute-stablecoin-yield Sharing part of your reserve yield is one of the strongest ways to grow a stablecoin. The hard part has always been doing it onchain: reaching the right venues and partners, adjusting the rate as your yield moves, and updating the list of beneficiaries as it changes, without rebuilding your setup each time. Merkl makes it one simple, flexible setup. ## Turn reserve yield into onchain growth Stablecoin reserves, usually made up of treasury bills, generate yield. After costs, that yield is your **net interest margin (NIM)**, and you can share part of it with those who actively use your stablecoin, from individual users to the companies that drive its usage. You decide how the payout is structured, tied to onchain activity rather than to passive holding, or routed to a dedicated company wallet, so you can keep it compliant with whatever framework applies to you, from GENIUS to MiCA to CLARITY. ## Distribute it through Merkl Once you have set aside the cut you want, Merkl distributes the rest for you. As the [paying agent of onchain finance](https://blog.merkl.xyz/programmable-paying-agent-tokenized-finance), Merkl handles the whole distribution across any DeFi venue, without a line of code, and keeps you in control at every step. You never distribute more than your reserves earn. ![](../images/stablecoin/redistribute-stablecoin-yield-distribute.jpg) ### Keep custody of the budget You keep custody throughout. Merkl uses a push model, so payouts go straight from your wallet to user wallets and funds never sit with a third party. If a payout is ever assigned to an address that cannot claim it, you can recover those funds. ### Run it with near-zero maintenance The only recurring task is funding. You top up a single address with the yield you plan to distribute, and there is nothing else to maintain. ### Adjust your rate automatically Your payout rate can be whatever you want, a fixed value or a function of any inputs you choose. Merkl can track offchain references like the Secured Overnight Financing Rate (SOFR), or any other source, and make your rate follow them in real time, with no manual updates. ### Control who earns, anytime Once your distribution is set up, eligibility can be governed by a whitelist that you update programmatically. Adding or removing an address takes a single API call, with nothing to sign or redeploy onchain. This works at scale. Your distribution keeps running while your whitelist evolves underneath it, so the set of addresses earning your yield can grow or shrink at any time without touching the underlying setup. ![](../images/stablecoin/redistribute-stablecoin-yield-whitelist.jpg) ### Whitelist a protocol, not a thousand addresses You do not have to enumerate every recipient. You can whitelist at the protocol level. Whitelist a lending protocol's contract, and distribution flows automatically to every market that holds your token under it, thanks to [Merkl's reward forwarding](https://docs.merkl.xyz/merkl-mechanisms/reward-forwarding). Forwarding traces ownership through the layers of nested contracts that sit between depositors and the underlying lending markets, so every reward lands in the wallet of the actual end user rather than getting stuck at an intermediary vault contract. For example, whitelist the Morpho contract, and every user who deposited your stablecoin through a Morpho vault becomes eligible. The result: one call to widen your program to an entire protocol. ### Reward a company for its users' balances Forwarding sends a reward down to the end users behind a contract. Merkl can also do the reverse. It aggregates the balances held by a company's users and rewards the company itself, in proportion to how much its user base contributes to your stablecoin's circulation. To do this, Merkl maps wallets to the entities behind them, so you always know which wallets belong to which company or partner. Attribution and reconciliation across many partners are handled for you, at scale. ### Pay each contributor their exact share Merkl does not rely on snapshots. It reads every onchain event and tracks balances continuously, so each recipient earns exactly in proportion to what they contributed, for exactly as long as they contributed it. On any venue, rewards scale with real balances. As a position grows or shrinks, its share adjusts automatically, so you always pay for actual contribution, never a stale snapshot. On a lending market, Merkl pays only on the part that isn't already earning interest from borrowers. ## Concrete examples ### DeFi venue expansion Say you issue a stablecoin and start distributing your reserve yield to depositors on Morpho. Tomorrow, Aave lists your stablecoin. Expanding your program is one API call: whitelist the Aave contract, and Aave depositors become eligible. The distribution was already running, so the cost of expansion is zero. ### Multiple liquidity pools Your stablecoin trades across many Uniswap pools. Rather than pick one, you whitelist several at once, and the liquidity providers in each become eligible. As liquidity moves to new pools, you add them the same way, one call each, all drawing from the same budget. ### KYC-cleared beneficiaries Share yield only with beneficiaries who cleared your checks. As more of them pass KYC, you add each to the whitelist, and the program widens to every new verified participant without touching the setup. ### Distribution partners You can also reward the companies that grow your stablecoin's usage, not just their end users. Say a partner brings 100,000 user wallets. Merkl tracks the balance those wallets hold over time and rewards the partner's own address in proportion. Your distribution network becomes an incentive of its own. ## Conclusion Sharing your reserve yield should not mean rebuilding your setup every time your program changes. You set it up once, keep custody of the budget, adjust the rate as your margin moves, and decide who earns with a single API call. You bring the yield. Merkl, the paying agent of onchain finance, handles the distribution and keeps it running as your program grows across every venue and partner that drives your stablecoin forward. Every payout lands with the right party, in exact proportion to what they contributed. --- # Distribute yield with Merkl > Category: Stablecoin > URL: https://studio.merkl.xyz/guides/stablecoin/distribute-yield ## Distribute reserves-generated yield with Merkl Stablecoin issuers sit on reserves that natively generate yield, a **self-renewing budget** that can be deployed to grow the stablecoin's footprint across DeFi without drawing on other resources. Merkl is a natural place for stablecoin issuers to **distribute their net interest margin** (the spread between what their reserves earn and what they retain) to select DeFi users and venues that hold the token. The goal is to offer **deep, sustainable yield products** to users across the venues that matter for stablecoin growth, without overpaying or being gamed by advanced users. Merkl offers **several mechanisms** to do this with strict spend discipline, each with a different trade-off between cost control and end-user experience: - **Idle liquidity-based rewards**: tight cost control. You never pay more than what you earn on the target venue (or at least you calibrate it so spend stays bounded by your net interest margin). - **Total APR campaigns**: better UX. You guarantee end users a target total APR on a venue, at the cost of losing strict control over spend relative to what you earn there. Together, these turn passive reserve income into a sustainable engine for stablecoin growth, backing deep yield products for users wherever the token is held. ### Mechanism 1: Idle liquidity-based rewards Idle liquidity-based rewards are a capital-efficient mechanism that rewards depositors proportionally to **unutilized liquidity**. The core guarantee: **you never spend more than what you earn on the target venue**, or at the very least you calibrate the target APR so spend stays bounded by the net interest margin generated there. #### How It Works This feature creates a self-balancing incentive system where your reward costs scale automatically with market conditions: - **Fixed APR on Idle Capital**: You specify a target APR (e.g., 5%) paid on the unborrowed balance sitting in the target venue. This target APR corresponds to the APR you generate on your reserves, net of performance fees. - **Automatic Forwarding**: These rewards are distributed proportionally to all depositors, even when they access the venue through vaults or other 3rd party apps. ![Idle liquidity-based rewards](../images/stablecoin/distribute-yield-idle-liquidity.png) #### Setup: Token Holding campaign Idle liquidity-based rewards are set up on Merkl as a **Token Holding campaign**. You whitelist the contract addresses of the lending venues holding your stablecoin, and Merkl tracks the **time-weighted balances** of your stablecoin across all whitelisted addresses. That balance is the **true onchain metric of utilization**: the higher the utilization on a venue, the lower the idle balance sitting in its contract, and therefore the lower the reward Merkl pays out on that venue. As a concrete example, assume 100 tokens of your stablecoin are supplied to a lending venue, utilization is 25%, and the target APR is 5%. The idle balance Merkl observes on that contract is 75 tokens, so the campaign pays `5% × 75` over the observed period, distributed to that venue's depositors. If utilization rose to 100%, the observed idle balance would be 0 and nothing would be paid. Because Merkl is **accurate down to the block**, balances are monitored continuously and rewards are computed on a **time-weighted** basis, so depositors are paid exactly for the idle liquidity they provided, for as long as they provided it. Use the [following template](https://studio.merkl.xyz/templates?id=014a66a0-34cb-4e4f-ab22-bb2f9984a8b4) in Merkl Studio to create such campaign in a couple of minutes. #### Key Benefits - **Cost Control**: You only pay when capital is unutilized. High utilization means minimal incentive costs but maximum borrow fee revenue - **Natural Equilibrium**: When utilization is low, depositors receive rewards close to the reserve rate, improving overall APY and attracting deposits - **Self-Funding**: Incentives are funded directly from the reserves generated by idle capital, creating a sustainable model #### Market Dynamics **High Utilization** - Minimal idle capital. Very low incentive costs - High borrow fees generated. Depositors earn primarily from organic borrowing activity **Low Utilization** - Significant idle capital. Higher incentive payments, but a lot of idle assets are sitting in the venue, so the cost is partially or completely paid by the yield generated on the reserves - Lower borrow fees. Depositors receive substantial rewards from idle liquidity, keeping APY competitive ![Balancing yield sources with Merkl](../images/stablecoin/distribute-yield-fixed-apr.png) #### Supported venues Idle liquidity-based rewards are **venue-agnostic**. Merkl applies them to any lending venue where utilization and depositor balances can be tracked onchain. Aave and Morpho are two current integrations described below as examples, and **more venues can be added as the stablecoin is integrated into them**. - **Aave**: the **aToken contract** holds all of the pool's unborrowed liquidity, so you only need to whitelist this single contract. Merkl rewards each depositor on their pro-rata share of the pool's **net lending balance** (what has been supplied minus what has been borrowed), which is exactly the idle liquidity they are providing at any moment. - **Morpho**: every market runs under a single **singleton contract**, which is the one you whitelist. Merkl iterates through every market that uses your token, reading each one's utilization, and rewards depositors proportionally to the idle balance they contribute to that market. Rewards are automatically forwarded down through the layers of vaults that deposit into those markets, so end users always receive their share. A market at 100% utilization pays nothing to its suppliers. When the stablecoin is used as **collateral** on Morpho rather than supplied for lending, users are rewarded based on the amount of collateral they have posted. ### Mechanism 2: Total APR campaigns Total APR campaigns let issuers **guarantee a target total APR** to end users on a given lending venue. Merkl continuously measures the native yield earned by depositors there and pays out **the difference between that native yield and the target APR** you set. This gives depositors a predictable, advertised APR regardless of market conditions. Great for user experience and marketing, with an important trade-off: - **No strict spend cap vs. earnings**: unlike idle-liquidity campaigns, you do not strictly control how much you pay relative to what you earn on that specific venue. If utilization or native rates move against you, top-ups can exceed the net interest margin generated there. - **Predictability for users**: in exchange, depositors always see the APR you advertised, which can materially increase deposits and strengthen the stablecoin's footprint. Total APR campaigns are the right choice when **predictable end-user APR matters more than strict cost control**, and when you are comfortable monitoring the campaign to keep overall spend in line with reserve earnings. Merkl supports Total APR campaigns on multiple lending venues. See the [Merkl docs on Target Total APR campaigns](https://docs.merkl.xyz/merkl-mechanisms/distributions#-target-total-apr-campaigns) for the full list and technical details. ![Fixed total APR with Merkl](../images/stablecoin/stable-apr-yield.png) ### Compliance considerations Merkl provides the infrastructure to distribute yield, but **it is not legal advice**. Redistributing reserve-generated yield to stablecoin holders or DeFi users may fall under evolving regulatory frameworks, including the **GENIUS Act** (US payment stablecoins) and the **CLARITY Act** (US digital asset market structure), as well as equivalent regimes in other jurisdictions. Issuers are responsible for structuring their distribution programs to be compliant with the rules that apply to them, and should consult their own counsel before launching a yield-redistribution campaign on Merkl. To help with this, Merkl also supports **activity-based rewards**, where payouts are tied to specific onchain actions (borrowing, swapping, bridging, providing liquidity, etc.) rather than passive holdings. This can be a useful building block when structuring a compliant distribution program, since activity-based rebates are typically treated differently from passive yield under the frameworks above. --- # Why your stablecoin needs Merkl > Category: Stablecoin > URL: https://studio.merkl.xyz/guides/stablecoin/why-your-stablecoin-needs-merkl ## Built for composable DeFi Stablecoin holders are active across dozens of protocols, multiple chains, and layers of smart contracts. Merkl tracks all of it automatically, and distributes yield directly to them. Merkl supports most DeFi protocols, including top lending platforms such as Aave, Euler, or Morpho, letting you reach users everywhere in one go. Merkl's forwarder system traces yield back through every layer of smart contracts to reach the actual user wallet. Your stablecoin lives on multiple networks. Merkl supports 60+ chains and distributes rewards wherever your users hold and use it. ## Distribution that fits your strategy Merkl's granularity lets you direct yield toward the user behaviors that actually matter for your growth. ## Save time. Save budget. Ship faster. Launch and adjust yield distribution campaigns in minutes. No smart contracts to write, audit, or maintain. Custom eligibility filters ensure that yield goes to the right users and that you never distribute more than your reserve generates. Embed yield distribution natively in your product via Merkl's API. Claiming is automatic for all eligible users, with no manual steps required. The same platform used by PayPal, Coinbase, Sky, and 1000+ companies worldwide to distribute rewards at scale. --- # Distribute dividends onchain with Merkl > Category: Tokenized finance > URL: https://studio.merkl.xyz/guides/tokenized-finance/distribute-dividends-onchain-with-merkl ## Onchain dividends without compromise Distributing dividends onchain forces a choice between **rebasing logic** (a distribution of tokens, taxable at every accrual) and **non-rebasing logic** (an appreciation of share value, no distribution to holders). Merkl gives you the upside of each. Stream payouts continuously with **autoclaim**. Holders see dividends flowing in real time. Distribute any payout asset for liquid distributions, or fund shares for **compounding distributions**. Issuers schedule the distribution. Holders schedule the claim, on their fiscal calendar. ## Built for tokenized finance Your holders sit across chains, lending markets, and DeFi positions. Merkl reaches every one. Periodic or continuous. Pro-rata or weighted. Filtered by jurisdiction, holding duration, or any custom criteria. Reward forwarders trace beneficial ownership through 7+ layers of nested contracts. Any waterfall, any complexity, paid out to the right end holder. Plug Merkl in next to your transfer agent, custodian, or fund administrator. They handle the registry. Merkl handles the payout. ## Save time. Save budget. Ship faster. Launch and adjust dividend distributions in minutes. No smart contracts to write, audit, or maintain. Merkl supports 60+ chains and routes payouts wherever holders hold and use your asset. Every distribution and claim is reproducible onchain. Audit-ready by default, no manual reconciliation. The same platform used by PayPal, Circle, Coinbase, SG-Forge, Kraken, and 1000+ companies to distribute payouts onchain. --- # Direct donations vs Merkl rewards: two ways to incentivize a vault, one real difference > Category: Deep dives > URL: https://studio.merkl.xyz/guides/deep-dives/donations-vs-merkl To attract deposits into a vault, curators and issuers often add rewards on top of the vault's native yield. There are two ways to distribute those rewards to a vault's depositors, and which one to use is a frequent point of debate. On one side, the donation trick: sending the underlying asset straight into the vault, which raises its share price so every depositor's position is worth more. On the other, distributing rewards through Merkl, which computes who earned what and pays each eligible wallet directly. ## What a donation actually is A donation means **sending funds directly into an ERC4626 vault**. Because the transfer raises the vault's total assets without minting new shares, every depositor's share value rises. No claim, no interface, no campaign. The extra return simply shows up as a higher share price, with nothing for the user to claim. Think of the vault as a shared pot, where each share is worth `total in the pot ÷ number of shares`. If the pot holds 100 across 100 shares, one share is worth 1, so your 10 shares are worth 10. Donate 20 into the pot without creating new shares, and the pot holds 120 across the same 100 shares: each share is now worth 1.20 and your 10 are worth 12, a gain with nothing to do. ## Where a donation falls short A donation comes with several real disadvantages. ### You reward everyone, with no way to choose This is the difference that matters most, and it is the one a donation can never close. A donation lifts the share price for every wallet in the vault, indiscriminately. You cannot segment. You cannot say "reward only the users who arrived through a specific app or interface." **You cannot customize the payout per audience.** The vault does not know where a depositor came from, so neither does the donation. Segmentation is not a niche feature. It is how a wallet rewards its own users, how an app rewards only the deposits that came through it, and how an issuer runs a campaign for one partner without paying the whole market. A donation collapses all of that into a single undifferentiated payout. Related: a donation only rewards holders going forward. **There is no retroactive distribution.** ### You must pay in the vault's asset A donation has to be paid in the vault's own asset. That is fine if you are a stablecoin issuer sitting on that currency. It is a problem if you are a chain or a protocol that wants to incentivize in your own token, because a donation only accepts the vault's asset. You would have to sell your token for that asset first, creating **sell pressure** instead of putting your token in users' hands. ### You get one lever, and it can work against you A donation gives you one lever: the vault's total APR. On Morpho, you set the total rate you want the vault to show, and the donation tops it up to reach that number. That is your only control. But many issuers do not want to pin a final rate. They want a fixed spread on top of whatever the vault already earns on its own, and a donation cannot guarantee that. You control the final rate, not how much of it you are actually paying for, so as a stablecoin issuer you have no real guarantee you are earning more than you pay out. If the vault's own yield drops, your top-up quietly grows, and you can end up **overpaying**. For example, say the vault earns 3% natively and you top it up to a 5% display rate. If the native yield later falls to 1% and you still want to show 5%, you are now funding 4% yourself while the vault earns 1%. Because it is a single total APR for everyone in the vault, it also acts as a ceiling. If the vault's own markets start earning more than the rate you set, depositors do not keep the extra, they stay stuck at your number. And you have to keep adjusting that number by hand as native yield moves. And smoothing a donation into a total APR is only possible on Morpho, where it arrives as small increases every block so the rate never rises too fast. On any other vault, it is not one donation but many small ones over time, and the operational burden of running that is significant. ### You concentrate your budget on a single curator Donating to one vault sends all your budget into growing the TVL of a single curator. Others, potentially more effective, are shut out. As an issuer, your go-to-market should stay global and favor healthy competition between curators, not quietly pick a winner for them. ### It is less capital efficient for the issuer A donation pays out everything, automatically, to everyone. That sounds efficient. It is the opposite. In a claim-based setup, a share of users never claim. That unclaimed budget can come back to you, which lowers your real cost of capital. Many teams end up distributing meaningfully less than they budgeted. With a donation, there is no breakage. Every unit is paid out whether the recipient wanted it or not, including to dormant wallets that would never have claimed. ### The subsidy can be invisible A donation pushes up the APY shown on a vault, while the breakdown of yield sources can still display 0% incentives, so users might deposit expecting that APY to hold, not realizing it is being sponsored by rewards. **Once the donations stop, the rate can quietly fall back down.** Morpho now surfaces donations on its UI, and can release a donation gradually instead of all at once so the result reads as a steady APR rather than a one-time spike. That fixes the problem wherever the interface shows it, though not every UI does yet. ### And no, it is not a legal shortcut It is worth saying plainly, because people treat it as one. A donation is not a legal loophole. If you are not comfortable giving incentives, doing it through Merkl and doing it through a donation are exactly the same act. Before Morpho surfaced donations on its UI, a donation was simply a way to hide that liquidity was being subsidized. And even where the UI flags a donation, it still does not show how much of the yield is subsidized. ## What you get with Merkl instead Every limit above is a capability on the Merkl side. Distributing rewards through Merkl is not just another way to lift a vault, it is a different kind of tool: a [programmable paying agent](https://blog.merkl.xyz/programmable-paying-agent-tokenized-finance) that works out who is owed what before anything moves. ### Reward exactly who you choose Merkl scores each wallet against rules you define, so you can gate rewards to a specific source, audience, or action. Take the Robinhood campaign on a Morpho vault, distributed through Merkl: **rewards reach only the users who deposited into the vault via the Robinhood app**, not every depositor. You can also reward activity that already happened, which a donation can never do. ### Pay in any token Rewards are independent of what the vault holds. A chain or protocol can incentivize in its own token, with no need to sell it first. ### Set the payout rule you actually want Merkl supports the payout methods a campaign actually needs, built in: a fixed budget, a target total APR, a fixed APR or a fixed top-up above the vault's native yield, or margin sharing where you pass back part of the net interest margin. Each can run with a cap that resolves automatically, so the rate follows the rule you set instead of a single manual dial. On Morpho, a donation can only pin a total APR, with the overpay risk we saw above. Merkl does that too, but it also offers methods a donation cannot, like margin sharing: you distribute only a share of the yield your reserves generate, so you never pay out more than you make. ![Stablecoin yield redistribution: passing back a share of the yield your reserves generate](../images/deep-dives/stablecoin-yield-redistribution.jpg) ### Keep curator competition open Instead of rewarding one specific vault with donations, **reward the whole market your asset is used in**. Every vault that allocates into that market is exposed, so no single curator is favored and competition stays open. A market does not see individual users, only the vault as one big depositor, so a reward aimed at the market would land on the vault's address rather than the people inside it. Merkl's [reward forwarders](https://blog.merkl.xyz/merkl-insights-reward-forwarders-explained-ensuring-incentives-go-to-real-users) look through the vault and split the reward across its real depositors, pro rata. For the user, the experience is identical to a donation: same vault position, same claim, same yield in their wallet. The difference is entirely on your side. You reward every vault in the market at once and keep competition open, instead of locking your budget into a single curator. No trade-off for depositors, a strictly better setup for you. ### Recover what goes unclaimed A donation pays every wallet automatically, so none of the budget comes back. With Merkl you decide per audience: leave wallets on the default claim model and the rewards users never claim can return to you, **lowering your real cost of capital,** or turn on Autoclaim for the users you want to reach hands-free. You are not locked into paying everyone. ### Reward users hands-free with Autoclaim There is one real argument for donations: the user never has to claim. Yield just accrues inside the vault, with zero friction. For onboarding non-crypto-native users, that matters. **Merkl now answers this directly with [Autoclaim](https://merkl.xyz/services/autoclaim)**. Instead of the default pull model, where users claim their own rewards, Autoclaim runs claiming in the background and pushes rewards straight to user wallets on a schedule you define. The user never clicks claim. The rewards simply appear. Autoclaim is configurable end to end: claim cadence, a minimum dollar value per user before a claim fires, scope by campaign and reward token, and audience targeting so you can push for some users and keep others on pull. In other words, the one thing donations do well, frictionless delivery, is now a setting inside Merkl, without giving up the calculation engine underneath. Best of both worlds. ## The bottom line A donation works when you want to reward everyone in a vault, in the vault's own asset, with no distinctions. That is a narrow case. For anything more, choosing who gets rewarded, paying in your own token, or getting unclaimed budget back, Merkl handles it from a single setup. It is the engine that works out who is owed what, and pays exactly them. --- # Anatomy of a Distribution: Ethena Liquid Leverage > Category: Deep dives > URL: https://studio.merkl.xyz/guides/deep-dives/ethena-liquid-leverage-ethereum Merkl is usually read as a rail: hand it a list of addresses and amounts, and it pays them out. That misses where the value sits. **The hard part, and the real product, is computing who is owed what, under rules that can fold dozens of parameters into a single payout.** Traditional finance has a name for the party that does exactly this. The [paying agent](https://blog.merkl.xyz/programmable-paying-agent-tokenized-finance) calculates and administers what each holder is due, and Merkl is the programmable, onchain version of it. What that allocation computation involves is invisible from the outside, and making it visible is the whole point of this series, Anatomy of a Distribution. The method is the same each time: take one real, live distribution and look under the hood at the machinery that turns a single onchain action into a fair payout. We stay on mechanics. No budgets, no amounts distributed, no daily figures. We are opening with what is, to date, the most intricate shape [Ethena](https://app.merkl.xyz/programs/ethena?tokenType=all&sort=tvl-desc) has run with Merkl: the Liquid Leverage program on the Aave markets on Ethereum. As intricate as this distribution is, none of it was custom-built. Every parameter is an existing building block, and it is the way they combine that makes this program bespoke. ## What the user sees, and what runs underneath From the user's seat, the instruction reads as a single line: lend USDe and sUSDe on Aave, and loop the position. Everything else is invisible. That asymmetry is the entire point. A naive distribution would treat "supply the asset" as the rule, take a balance snapshot, and pay everyone holding it. Ethena wanted something far narrower and considerably harder to fake, and the distance between those two outcomes is the distance between a rail and a programmable layer. So before anything pays out, the live configuration runs a stack of conditions, and on Ethereum that stack is deeper than usual because the program spans two markets at once. The opportunity is named for the behavior it rewards: lend on Aave with looping required. Looping is the thing being rewarded, not the deposit. Let us walk the stack one brick at a time, and for each, name what a simpler system would get wrong. ![Ethena Liquid Leverage campaign on the Merkl app](../images/deep-dives/ethena-liquid-leverage-campaign.png) ### 1. Eligibility is a stack, not a balance check The first brick gates who is even considered. A wallet does not qualify by holding the asset. It has to satisfy a set of hooks, all of them, at the same time. It must lend on the Aave USDe and sUSDe markets. It must also borrow against that position, in USDC, USDT, or USDS. **And it must keep its health factor below a configured ceiling, set here to 2.5.** Read that last condition twice, because it inverts a reflex. In a lending market a low health factor is a warning light: it means a position sits closer to liquidation, and most of the time you want it higher, not lower. Here the logic runs the other way. A wallet that lends USDe and borrows nothing keeps a high health factor precisely because it is taking no leverage, which means it is parking the asset rather than working it. By requiring the health factor to stay below a ceiling, the configuration is checking for genuine looping. The low health factor is the onchain evidence that the wallet actually borrowed and recycled, instead of sitting still. A balance check cannot express any of this. It sees an amount and stops. The hook stack sees a behavior, and it is already several conditions deep before scoring even begins. ### 2. Scoring takes the minimum across two markets This is the brick that makes the Ethereum shape stand out, and it is the one a rail could never do. The program does not reward one market. **It rewards a paired position across two: the USDe market and the sUSDe market.** Internally, the distribution is composed of two linked sub-distributions, one per market, joined under a single opportunity. The way they are joined is the interesting part. The scoring rule is literally a minimum: a wallet is credited on the smaller of its two positions, the lesser of what it lent on the USDe side and what it lent on the sUSDe side. Think about what that defeats. If the rule simply added the two positions, a wallet could load one market heavily, touch the other with a token amount, and collect as if it were balanced across both. Scoring on the minimum closes that door completely. To earn on a given size, a wallet has to actually hold that size on both sides. The reward tracks the paired exposure Ethena wants to see, not the larger leg a farmer would rather show. One simple instruction for the user, a two-market minimum resolved underneath. ![Lending across markets, scored on the lowest position](../images/deep-dives/lending-scored-on-lowest.jpg) ### 3. The reward is a receipt token The third brick is what the user receives. It is not a separate governance token dropped in alongside the position. **The reward is aEthUSDe, the Aave receipt token that represents the supplied USDe position itself.** This is deliberate. Most distributions pay in an unrelated asset that lands in the wallet as something you then have to decide what to do with, and the rational move is often to sell it, which quietly pulls capital out of the very behavior being rewarded. Paying in the receipt token keeps the reward inside the position. It compounds straight back into the Aave supply rather than sitting loose next to it. The behavior being rewarded and the form of the reward are the same shape, which means the wallet that looped harder ends up holding more of the exact asset it was looping. Alignment here is not a slogan, it is the token address. ![Choosing the reward token: receipt token versus a separate token](../images/deep-dives/choosing-the-reward-token.jpg) ### 4. The reward amount tracks a target rate, and it is capped The fourth brick is how much each wallet gets. It is not a fixed amount per wallet, and not a pool split among whoever shows up. Instead the engine targets a rate: it sizes each wallet's reward to deliver a set annual return on its position, like a target APR, and caps it so the rate cannot run too high. Here the target roughly matches the native sUSDe rate, and it is a dial the issuer can turn, not a fixed number. Why this way? A fixed amount per wallet ignores position size, so it pays the wrong rate to almost everyone. A pool split makes each wallet's reward depend on how many others joined, which no issuer can predict. Targeting a rate fixes the one thing the issuer wants to offer, the return, and the engine works backward to each amount, recomputing as positions and prices move. The cap is the safety rail: on a quiet day, it stops the rate from ballooning. ### 5. Scoring is weighted by time, not a snapshot The fifth brick is the one most distributions get laziest about. Scoring is weighted by time. A wallet is credited in proportion to the position it actually held, across the duration it held it, and then the cross-market minimum is taken on that time-weighted basis. The contrast is a single snapshot, which is trivially gameable: deposit the moment before, withdraw the moment after, collect as if you had been present throughout. Time-weighting closes that door. An hour of holding earns an hour. Holding throughout earns throughout. Combined with the eligibility stack, a wallet is only ever scored for the windows in which it was simultaneously lending on both markets, borrowing, and sitting below the health factor ceiling. The conditions are not checked once. They are checked continuously. ![Merkl time-weighted scoring versus a single snapshot](../images/deep-dives/time-weighted-vs-snapshot.jpg) ### 6. Reaching the real owner: forwarders and exclusions The sixth brick looks like an edge case and is actually the hardest problem in onchain distribution. The lent position is represented by a receipt token, and a receipt token can move. It can be deposited into a vault, wrapped, or routed through another contract. When that happens, the address technically holding the token is not the wallet that is actually exposed to the position. Pay the holder and you pay the contract, not the person. The reward lands in an intermediary that has no way to pass it on, and the user who took the leverage gets nothing. This is where Merkl's [reward forwarders](https://blog.merkl.xyz/merkl-insights-reward-forwarders-explained-ensuring-incentives-go-to-real-users) do the work. Forwarding is enabled on this distribution, so the engine traces ownership through nested contracts, layer by layer, until it reaches the wallet genuinely exposed, and pays there instead of stopping at the intermediary. Alongside it sits a blacklist: an explicit list of excluded addresses, contracts that should not earn, removed from the calculation entirely. ## The whole thing, as a configuration Every brick above lives in a single [configuration object](https://studio.merkl.xyz/guides/getting-started/how-merkl-campaigns-are-configured), stored and computed by the platform. Here is that configuration (minus the 32 excluded addresses, trimmed for readability). **None of it is custom code. These modules already exist, and this distribution is simply a particular way of combining them.** ```json { "type": "MULTILOG_DUTCH", "computeScoreParameters": { "computeMethod": "genericTimeWeighted" }, "composedCampaignsCompute": "min(1,2)", "forwardingEnabled": true, "hooks": [ { "hookType": 17, "healthFactorThreshold": "2.5", "targetBytesLike": "0x87870Bca...4E2 (Aave pool)" }, { "hookType": 14, "borrowBytesLike": ["0x015396E1...5145 (debt token)"] } ], "composedCampaigns": [ { "composedIndex": 1, "symbolUnderlyingToken": "sUSDe", "symbolTargetToken": "aEthsUSDe", "symbolRewardToken": "aEthUSDe", "distributionMethodParameters": { "distributionMethod": "MAX_APR", "distributionSettings": { "apr": "0.035", "rewardTokenPricing": true, "targetTokenPricing": true } } }, { "composedIndex": 2, "composedType": "MAIN", "symbolUnderlyingToken": "USDe", "symbolTargetToken": "aEthUSDe", "symbolRewardToken": "aEthUSDe", "distributionMethodParameters": { "distributionMethod": "MAX_APR", "distributionSettings": { "apr": "0.035", "rewardTokenPricing": true, "targetTokenPricing": true } } } ], "blacklist": ["0x90d443b3...E981", "0x2c4FB358...1c08", "... (32 addresses excluded)"] } ``` Read it back against the configuration. - The two `hooks` are the eligibility stack: `hookType 17` sets `healthFactorThreshold: "2.5"`, and `hookType 14` requires the borrow. - `composedCampaignsCompute: "min(1,2)"` scores each wallet on the smaller of its two market positions, market 1 (sUSDe) and market 2 (USDe): the cross-market minimum. - The two `composedCampaigns` entries are the sUSDe and USDe markets, each paying `symbolRewardToken: "aEthUSDe"`, the receipt token. - `distributionMethod: "MAX_APR"` with its `apr` target is the capped reward amount. - `computeMethod: "genericTimeWeighted"` is the time-weighted scoring. - `forwardingEnabled: true` and the `blacklist` reach the real owner. ## What this distribution shows For the user, this looks simple: deposit, loop, and keep the health factor in range. Behind that one action runs a whole stack of Merkl engineering, the six bricks we just walked through: the paired-market minimum, the inverted health-factor check, the receipt-token reward, the capped target rate, the time-weighting, and the ownership forwarding, all resolved inside a single configuration object. That is where Merkl's value sits. Not in moving the tokens, but in combining dozens of parameters into a unique distribution without a line of custom code. The same set of bricks runs unchanged on other chains too, like Plasma, with only the tokens swapped. The complexity is real, and Merkl absorbs all of it: the issuer is left with a configuration, the user with a single click. ---