Skip to content

Yelay Lite Action Provider #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Yelay Lite Action Provider #741

wants to merge 1 commit into from

Conversation

Traf333
Copy link

@Traf333 Traf333 commented May 30, 2025

Yelay Action Provider Integration

This PR adds the Yelay action provider to AgentKit, enabling seamless interaction with Yelay Vaults for yield optimization. The integration supports multiple EVM networks including Ethereum, Base, and Sonic.

Closes #730

Key Features

  • Get Vaults: Fetch a list of available Yelay Vaults with their current APYs and contract addresses
  • Deposit Assets: Deposit assets into a specified Yelay Vault
  • Redeem Assets: Withdraw assets from a Yelay Vault
  • Claim Yield: Claim accumulated yield from a Yelay Vault
  • Check Balance: View user's balance and yield information for a specific vault

Supported Networks

  • Ethereum Mainnet (chainId: 1)
  • Sonic (chainId: 146)
  • Base (chainId: 8453)

Tests

Chatbot: typescript/examples/langchain-cdp-chatbot
Network: Base Mainnet
Setup: 0.001weth

Prompt: show me the list available vaults on yelay

-------------------
Wallet Details:
- Provider: cdp_wallet_provider
- Address: 0xBBc334919674B16F17E1aBEeEc1Bc7af80087063
- Network:
  * Protocol Family: evm
  * Network ID: base-mainnet
  * Chain ID: 8453
- Native Balance: 974031326335856 WEI
-------------------

-------------------

Base WETH:
Address: 0xf0533a9eb11b144ac3b9bbe134728d0f7f547c52
APY: 2.18%
----------------
Base USDC:
Address: 0x0c6daf9b4e0eb49a0c80c325da82ec028cb8118b
APY: 4.78%
----------------
Base cbBTC:
Address: 0x47a879ac3c9646116326b4a1462e1d477056aff0
APY: 0.88%

-------------------
Here are the available vaults on Yelay:

1. **Base WETH**
   - Address: `0xf0533a9eb11b144ac3b9bbe134728d0f7f547c52`
   - APY: 2.18%

2. **Base USDC**
   - Address: `0x0c6daf9b4e0eb49a0c80c325da82ec028cb8118b`
   - APY: 4.78%

3. **Base cbBTC**
   - Address: `0x47a879ac3c9646116326b4a1462e1d477056aff0`
   - APY: 0.88%
-------------------

Prompt: show me my balance for weth vault

-------------------
User balance from Yelay Vault 0xf0533a9eb11b144ac3b9bbe134728d0f7f547c52: 800000000000000
-------------------
Your balance for the WETH vault is approximately **0.0008 WETH**.
-------------------

Prompt: I would like to redeem 0.0004 weth

-------------------
Redeemed 0.0004 from Yelay Vault 0xf0533a9eb11b144ac3b9bbe134728d0f7f547c52 with transaction hash: 0x96e33ef4cf24e5e7f9a65e1b16d23f32561ef3e12c836419d2c561be3730cf4f
-------------------
You have successfully redeemed **0.0004 WETH** from the Yelay vault. The transaction hash is: `0x96e33ef4cf24e5e7f9a65e1b16d23f32561ef3e12c836419d2c561be3730cf4f`.
-------------------

Prompt: I would like to deposit 0.0002 weth to yelay vault

-------------------
Deposited 0.0002 to Yelay Vault 0xf0533a9eb11b144ac3b9bbe134728d0f7f547c52 with transaction hash: 0x0df4b55335a2b8c03a6968f5f562d895f7d7ae2d179269d5a841cabb81e01af0
-------------------
You have successfully deposited **0.0002 WETH** to the Yelay vault. The transaction hash is: `0x0df4b55335a2b8c03a6968f5f562d895f7d7ae2d179269d5a841cabb81e01af0`.
-------------------

Prompt: great, what is my balance there

-------------------
User balance from Yelay Vault 0xf0533a9eb11b144ac3b9bbe134728d0f7f547c52: 600000000000000
-------------------
Your current balance in the WETH vault is approximately **0.0006 WETH**.

Checklist

A couple of things to include in your PR for completeness:

  • Added documentation to all relevant README.md files
  • Added a changelog entry

@Traf333 Traf333 requested a review from murrlincoln as a code owner May 30, 2025 07:21
@cb-heimdall
Copy link

🟡 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 0
Sum 1

@github-actions github-actions bot added documentation Improvements or additions to documentation action provider New action provider example New example agent typescript labels May 30, 2025
@Traf333 Traf333 mentioned this pull request May 30, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action provider New action provider documentation Improvements or additions to documentation example New example agent typescript
Development

Successfully merging this pull request may close these issues.

Yelay Lite Action Provider
2 participants