stakr-protocol
Installation
SKILL.md
Stakr Protocol — Agent Overview
This skill gives agents the context to interact with the Stakr protocol: ERC-4626 tokenized vaults with multi-reward staking for any ERC-20 token. Use it when building integrations, scripts, or tooling that create vaults, add rewards, modify reward schedules, or let an agent operate its "own" vault.
Protocol at a Glance
- StakrVault: Single-asset ERC-4626 vault. Users deposit underlying, get shares; they can lock shares to earn multiple reward tokens over configurable windows.
- StakrVaultFactory: Deploys vaults and holds protocol fee configuration. One factory per chain.
- Rewards: Up to 25 reward tokens per vault. Each reward has
startTime,endTime, and totalamount. Distribution is linear over the window; logic is Masterchef-style (accumulated rewards per share). - Ownership: A vault can have an
owner(address that can add/modify rewards) oraddress(0)for permissionless reward addition.
When an agent is said to have its "own vault", it means: the agent (or a controlled EOA/contract) is the vault owner, so it can call addRewardToken and modifyRewardToken to fund and adjust rewards without third-party permission.