feat: add Pendle Finance action provider#1056
Open
Kubudak90 wants to merge 1 commit intocoinbase:mainfrom
Open
feat: add Pendle Finance action provider#1056Kubudak90 wants to merge 1 commit intocoinbase:mainfrom
Kubudak90 wants to merge 1 commit intocoinbase:mainfrom
Conversation
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)"
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new action provider for Pendle Finance on Base, enabling AI agents to interact with Pendle's yield tokenization protocol.
Addresses WISHLIST.md item: "Pendle interactions (LP, PT, YT)"
Actions
buy_ptsell_ptbuy_ytsell_ytadd_liquidityremove_liquidityclaim_rewardslist_marketsImplementation Details
api-v2.pendle.finance) for optimal execution — aggregator routing, limit order matching, gas-efficient offchain params0x888...946) call forclaim_rewardsviaredeemDueInterestAndRewardsFiles
pendle/pendleActionProvider.tspendle/schemas.tspendle/constants.tspendle/pendleActionProvider.test.tspendle/index.tsTest plan
pnpm run buildpasseslist_markets, thenbuy_pton an active market