Skip to main content

StakrVaults Overview

Status: Live

StakrVaults are ERC-4626 vaults with lock-based multi-reward incentives on Base mainnet.

What StakrVaults Solve

  • Launch staking rails quickly for any ERC-20.
  • Align token holders with sustained rewards.
  • Give agents programmable control over incentives.
  • Add policy controls using optional plugin hooks.

Building Blocks

  • StakrVaultFactory: creates vaults and configures protocol fees.
  • StakrVault: handles deposits, share locking, reward accounting, and reward lifecycle.
  • IStakrVaultPlugin: optional strict hook system to extend vault behavior.

Plugin System at a Glance

A vault can be deployed with plugin = address(0) (no hooks) or with a plugin contract that implements IStakrVaultPlugin.

  • Hooks run around deposit, lock, unlock, redeem, add/modify/remove reward, and harvest.
  • Hook reverts are strict: if the plugin reverts, the vault action reverts.
  • This lets teams enforce policy like whitelist deposits, lock-up windows, or custom compliance checks without changing core vault logic.

Typical Agent Lifecycle

  1. Deploy a vault from factory (with or without plugin).
  2. Fund first incentive with addRewardToken.
  3. Keep program active with modifyRewardToken.
  4. Let users lock, harvest, and unlock through app/agent UX.
  5. Enforce policy using plugin before/after hooks when needed.

Next Step