> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yield.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Incentive campaigns

> Layer a time-boxed reward budget on top of a yield, with time-weighted accrual and eligibility rules you configure.

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

| Mode | Behavior |
| - | - |
| `normal` | Rewards are paid in the campaign's reward token to the user's wallet at each payout. |
| `compound` | Rewards are paid in the yield's own position token, such as a vault share or liquid staking token, so each payout adds directly to the user's position instead of landing as a separate balance. |

## 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:

| Field | Controls |
| - | - |
| `rewardToken` | The token distributed as rewards |
| `rewardMode` | `normal` or `compound` |
| `totalBudget` | Total reward token amount for the campaign |
| `startTime` / `endTime` | The accrual window |
| `apyCeiling` | Optional cap on the campaign's annualized incentive rate across all qualifying deposits, as a decimal between 0 and 1 (`0.125` = 12.5%). The cap is applied as a simple annual rate on each window's emission. |
| `payoutFrequency` | `six_hourly`, `daily`, `weekly`, or `end_of_campaign` |
| `budgetSpendStrategy` | `allow_underspend` or `spend_full_budget`, see below |
| `qualificationConfig` | The eligibility rule, see below |
| `blacklistBudgetHandling` | `reserve` (a flagged address's share is held back at payout) or `redistribute` (it goes to the other eligible wallets) |
| `safeAddress` | The multi-sig wallet the campaign pays out from, such as a Safe on EVM networks. A multi-sig can back only one live campaign at a time. |

### 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

| State | Meaning |
| - | - |
| `draft` | Configured but not accruing |
| `active` | Accruing and paying out on schedule |
| `paused` | Accrual and payouts stopped; can be resumed |
| `ended` | No further accrual; remaining earned rewards are still paid out |

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](https://docs.yield.xyz/documentation/advanced-setup/programmatic-access.md).

## Next steps

> [card] [Yield metadata](https://docs.yield.xyz/documentation/earn/core-concepts/yield-metadata.md)
>
> How reward rates and their components surface on a yield.

> [card] [Balances and positions](https://docs.yield.xyz/documentation/earn/core-concepts/balances-positions.md)
>
> Track per-user positions and accrued reward balances.

> [card] [Programmatic access](https://docs.yield.xyz/documentation/advanced-setup/programmatic-access.md)
>
> Admin API keys, including read-only campaign reporting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.