Skip to content

feat: add Beefy Finance yield vault action provider#1058

Open
Kubudak90 wants to merge 3 commits intocoinbase:mainfrom
Kubudak90:feat/beefy-action-provider
Open

feat: add Beefy Finance yield vault action provider#1058
Kubudak90 wants to merge 3 commits intocoinbase:mainfrom
Kubudak90:feat/beefy-action-provider

Conversation

@Kubudak90
Copy link
Copy Markdown

Summary

Adds a new action provider for Beefy Finance on Base, enabling AI agents to deposit into and manage auto-compounding yield vaults.

Addresses WISHLIST.md item: "Farm yield (Beefy, Yearn)"

Actions

Action Description
deposit Deposit want tokens into a Beefy vault (auto-approval)
withdraw Withdraw from vault (specific amount or withdrawAll)
check_position Check mooToken balance, price per share, underlying value
list_vaults List active Base vaults with APYs and TVL (filterable by platform)

Implementation Details

  • Direct BeefyVaultV7 contract calls for deposit/withdraw/balance
  • Beefy public API (api.beefy.finance) for vault discovery, APY data, and TVL
  • Auto-reads the vault's want() token and its decimals before deposit
  • Supports filtering vaults by platform (aerodrome, morpho, curve, compound, etc.)
  • 240+ active vaults on Base
  • Supports Base mainnet

Files

File Description
beefy/beefyActionProvider.ts Main provider with 4 actions
beefy/schemas.ts Zod input schemas
beefy/constants.ts Vault ABI and API base URL
beefy/beefyActionProvider.test.ts 11 unit tests (all passing)
beefy/index.ts Re-exports

Test plan

  • pnpm run build passes
  • 11/11 unit tests pass
  • Manual: list vaults, deposit WETH into a Morpho vault, check position, withdraw

Kubudak90 added 3 commits March 29, 2026 23:59
Add a new action provider for Pendle Finance, enabling AI agents to
interact with Pendle's yield tokenization protocol on Base.

Actions:
- buy_pt: Buy Principal Tokens to lock in fixed yield
- sell_pt: Sell PT back to underlying tokens
- buy_yt: Buy Yield Tokens to speculate on yield
- sell_yt: Sell YT back to underlying tokens
- add_liquidity: Provide liquidity to Pendle markets
- remove_liquidity: Remove liquidity from markets
- claim_rewards: Claim accrued interest, yield, and PENDLE rewards
- list_markets: List active Pendle markets with APYs and TVL

Uses Pendle Hosted SDK API for optimal execution (aggregator routing,
limit order matching, gas-efficient offchain params). Falls back to
direct Router V4 calls for claim_rewards.

Addresses WISHLIST.md item: "Pendle interactions (LP, PT, YT)"
Add a new action provider for Lido Finance, enabling AI agents to
stake ETH/WETH and receive wstETH on Base.

Actions:
- stake_eth: Stake native ETH to receive wstETH via Lido fastStake
- stake_weth: Stake WETH to receive wstETH (with auto-approval)
- check_wsteth_balance: Check wallet's wstETH balance

Uses Lido's Direct Staking via Chainlink CCIP Custom Sender for
instant fastStake operations on Base. wstETH earns ~3-4% APY
through an increasing exchange rate.

Addresses WISHLIST.md item: "Stake/restake with Lido/Ether.fi"
Add a new action provider for Beefy Finance, enabling AI agents to
deposit into and manage auto-compounding yield vaults on Base.

Actions:
- deposit: Deposit want tokens into a Beefy vault (auto-approval)
- withdraw: Withdraw from vault (specific amount or withdrawAll)
- check_position: Check mooToken balance, price per share, underlying value
- list_vaults: List active Base vaults with APYs and TVL (filterable by platform)

Beefy auto-compounds yield from 240+ vaults across Aerodrome, Morpho,
Curve, Compound, and more on Base. Uses the Beefy public API for
vault discovery and direct BeefyVaultV7 contract calls for deposits/withdrawals.

Addresses WISHLIST.md item: "Farm yield (Beefy, Yearn)"
@Kubudak90 Kubudak90 requested a review from murrlincoln as a code owner March 30, 2026 07:08
@cb-heimdall
Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@github-actions github-actions bot added action provider New action provider typescript labels Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants