Stakr

From Eskyee/agentbot-opensource · View interactive version

Stakr is an AI agent skill from the GitHub repository Eskyee/agentbot-opensource. Interact with the Stakr protocol — ERC-4626 vaults with multi-reward staking. Use when the user or an agent needs to work with Stakr vaults, add or modify rewards (addRewardToken, addRewards, modifyRewardToken, modifyReward), create or manage an "agent vault" or "own vault", fund incentive programs,

How to use this skill

Skill file

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

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.


Emphasis: Adding and Modifying Rewards (Agent-Owned Vaults)

Agents that operate their own vault will use these two functions most:

1. `addRewardToken(token, amount, settings)`

Purpose: Start a new reward program for a given ERC-20 token.

Use this when the agent wants to create a new reward (e.g. launch an incentive program on its vault).

2. `modifyRewardToken(token, amount, settings)`

Purpose: Add more amount and/or extend (or reschedule) an existing reward.

Use this when the agent wants to top up an existing reward or extend the distribution period (or reschedule after it has ended).

Summary for agents:

Executing Transactions via Bankr

To submit any Stakr call (vault creation, addRewardToken, modifyRewardToken), first encode calldata, then submit the transaction via the Bankr wallet API.

Use a natural-language Bankr agent prompt:

bankr agent prompt "Call addRewardToken on vault 0x... with token 0x... amount 1000 USDC starting tomorrow for 7 days"

Or submit raw encoded calldata directly:

bankr wallet submit --to <vault-address> --data <encoded-calldata> --chain base

For calldata encoding help, see the vault API reference.

3. Streaming rewards (continuous incentives)

Agents can stream rewards over time instead of funding one large window up front:

Use streaming when the agent wants to fund incentives on an ongoing basis (e.g. weekly top‑ups, or extending the program as budget allows) rather than committing to a single long window.


Creating an Agent-Owned Vault

  1. Get the StakrVaultFactory address for the chain.
  1. Call createStakrVault(underlying, name, symbol, description, owner):
  1. Use the returned vault address for all subsequent calls (addRewardToken, modifyRewardToken, etc.).

Core User Flows (for completeness)


Settings and Types


For exact function signatures, revert reasons, and events, read the vault API in this skill when implementing calls or debugging.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.