Skip to main content
Stake2Earn is Meteora’s stake-for-fee program for DAMM v1 constant-product pools. Pool creators lock DAMM v1 LP into a program-owned lock escrow, and token holders stake the pool’s base token to compete for the top staker list that receives released LP fees. To learn the product flow, configuration limits, and formulas before integrating, read the product documentation.

What Is Stake2Earn

Product overview for Stake2Earn staking, LP fee delegation, and top staker rewards.

Configuration And Limits

Product-level settings and launch constraints for Stake2Earn vaults.

Stake2Earn Formulas

Product formulas for staking, fees, and reward distribution.
Stake2Earn only supports DAMM v1 constant-product pools where the quote mint is SOL or USDC and the stake mint is the non-quote pool token.

Integration

Program Accounts

PDA seeds, vault state, stake escrow state, unstake requests, and top/full balance list layouts.

Program Instructions

Vault creation, staking, claiming, unstaking, withdrawal, crank, and admin instruction details.

Program Events

Event CPI emissions for vault lifecycle, staking, fee release, top list movement, and admin updates.

Program Errors

Anchor custom error codes, enum names, messages, and common integration causes.

TypeScript SDK

Transaction builders, state readers, PDA helpers, and examples from @meteora-ag/m3m3.

Rust Integration

Generated Rust instruction/account interface, PDA helpers, and CPI guidance.

Stake2Earn API

Indexed read-only vault discovery, analytics, filter routes, and leaderboard responses.

Changelog

Program, SDK, API, and source-noted release changes that affect integrations.

Program IDs

The public stake_for_fee program ID is the same on mainnet and devnet: Related program IDs used by the SDK:

Stake2Earn Program

Anchor program source for stake_for_fee.

Stake2Earn IDL

TypeScript IDL bundled by the public SDK.

TypeScript SDK

@meteora-ag/m3m3 SDK source for transaction builders and state helpers.

Rust Interface

Generated Rust instruction, account, event, and error interface.

Important Constants

Commands