Skip to main content
An incentive campaign adds a reward budget on top of an existing yield for a fixed window. The campaign belongs to your project: while it’s active, the yield’s reward rate on the Earn API includes a campaign incentive alongside its native rate for your API key, and wallets that deposited through your integration accrue a share of the budget over time. Campaigns are built to run on any yield Yield.xyz indexes, from staking to lending and vaults, on any supported network and with any reward token. Accrual is driven by indexed on-chain balances rather than by the protocol itself. metadata.supportsCampaigns on a yield shows whether it can carry a campaign today.

How a campaign runs

A campaign has two independent processes: accrual, which runs continuously over the campaign window, and settlement, which pays out on the campaign’s payout cadence.
  1. Accrual. The campaign window is processed in consecutive accrual windows of up to one hour. For each window, every eligible wallet’s time-weighted balance is computed from its indexed on-chain balance history, so a deposit counts only for the time it was actually held. Each qualifying wallet accrues a share of the campaign’s rewards based on its balance and how long it was held.
  2. Settlement. At each payout, wallets are paid the rewards they’ve accrued since the last payout. Yield.xyz reviews and approves every payout run, and the resulting token transfers are proposed to the campaign’s multi-sig in batches, where its signers execute them.
Accrual never skips time. If a window can’t be processed yet, for example because indexed balances haven’t caught up, the campaign resumes from where it stopped and processes the backlog in order. Each window is recorded once, so a retry never double-counts. A delayed payout doesn’t affect accrual, and the next payout is scheduled once the previous one has settled.

Reward modes

Configuration

A campaign runs on a specific yield, and each one is set up with Yield.xyz to fit the program you want to run. The main settings:

Budget spend strategy

  • allow_underspend emits at a set hourly rate, derived from the remaining budget and remaining time. The rate is recalculated when the campaign goes live, when its budget or end time changes, and when it resumes after a pause. Budget not emitted in a window, because nobody qualified or the APY ceiling applied, is only spread forward when the rate is next recalculated, and anything left at the end stays in the campaign’s multi-sig.
  • spend_full_budget recalculates the rate in every window from the remaining budget and remaining time, so any shortfall is spread across the rest of the campaign.

Requests and changes

Project owners and admins submit create, update and end requests from the Yield.xyz dashboard, and Yield.xyz reviews and accepts or rejects each one. An accepted create request starts the campaign. Once a campaign is live, you can change its budget, APY ceiling, end time, qualification rule, budget spend strategy and blacklist handling. The budget can go up or down, but never below what has already been earned. The reward token, reward mode, start time, payout frequency and payout multi-sig are fixed for the life of the campaign.

Lifecycle

You can pause and resume a campaign directly. When you resume, you can choose to backfill the paused period, which emits rewards for it at the current rate. Ending a campaign early goes through an end request. A campaign also ends on its own when it reaches its end time or when its budget has been fully released.

Eligibility and qualification

The only qualification rule currently supported is min_token_amount: a wallet’s time-weighted balance for a window must meet the configured threshold to earn rewards for that window. Because the check uses the time-weighted balance, a deposit made just before a window closes doesn’t qualify for that window. An optional maxIncentivizedTvlToken caps how much of a single wallet’s balance earns the incentive; the excess still earns the yield’s native rate. Independent of qualification, Yield.xyz can flag an address as ineligible for payout at your request, for example over a compliance concern or a detected gaming pattern. A flagged address keeps accruing but is left out of settlement, and its accrual history is kept. If the flag is lifted, the address becomes payable again. The flag lets you exclude a specific address without pausing the whole campaign.

Discovery

You can show active campaigns to users from two places:
  • On the yield itself. GET /v1/yields and POST /v1/yields/balances include a campaign_incentive entry in rewardRate.components, alongside the yield’s native rate, so a frontend can show where the combined rate comes from. The campaign rate is an APR based on the most recent accrual window.
    • GET /v1/yields shows the campaign-wide rate.
    • POST /v1/yields/balances adjusts the rate to the user: it’s omitted when the user’s balance is below the threshold or the address is flagged, and scaled down when the per-wallet cap applies. Rewards earned but not yet paid appear as a separate balance of type locked, dated to the next payout. The amount is an estimate until the payout run sets the final figure.
  • GET /v1/yields/{yieldId}/campaigns. Lists your project’s campaigns for a yield, filterable by status (active, paused or ended; defaults to active). Each entry includes its budget state (totalBudget, distributedBudget, and remainingBudget, which is the budget not yet paid out), apyCeiling, qualificationConfig, payoutFrequency, rewardToken, startTime / endTime, and nextPayoutDueAt.

Reporting

Campaign data is also readable with an Admin API key for finance and audit use: campaigns, accruals, payout runs and per-user balance state. This access is read-only; campaigns are not configured through it. See Programmatic access.

Next steps

Yield metadata

How reward rates and their components surface on a yield.

Balances and positions

Track per-user positions and accrued reward balances.

Programmatic access

Admin API keys, including read-only campaign reporting.