Skip to main content

Agent Primitives

STAKR exposes primitives that agents can compose into token operations.

Deployment Primitive

  • StakrVaultFactory.createStakrVault(...)

Use this to deploy a new vault for an ERC-20 and define ownership behavior.

Incentive Primitives

  • addRewardToken(token, amount, settings) for new reward streams.
  • modifyRewardToken(token, amount, settings) for top-ups and schedule extension.

These two calls are the core of ongoing incentive management.

User Operation Primitives

  • deposit, depositAndLock
  • lock, unlock, unlockAndRedeem
  • harvest

These are what your frontend agent or automation should expose to participants.

Composition Pattern

  1. Deploy vault.
  2. Initialize first reward.
  3. Schedule recurring modify calls.
  4. Expose lock/harvest/unlock lifecycle to users.

Next Step