-
Notifications
You must be signed in to change notification settings - Fork 544
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
Add Voltr check balance, deposit and withdraw strategy #128
Conversation
Hey, could you resolve merge conflicts and also implement |
hey Arihant, done. Appreciate your work. |
@jakeyvee Thanks, lgtm but I think it might be better if the action and langchain tool prompts didn't require user to specify the pubkey of the strategy/vault and rather it could be abstracted. I saw your autonomous mode demo and wanted to know what prompt have you specified such that the agent is able to figure out the strategy pubkey and then act on it? Also, pls resolve merge conflicts. |
Hey Arihant, the person who will be using Voltr on Solana Agent Kit would most likely be a Vault Manager who is aware of the vault's pubkey they are managing, so providing the vault's address is trivial. In my example above on autonomous mode, the manager can simply request to view the position of all strategies connected to the vault and do necessary rebalancing methods -- no strategy address is needed. Hope this clarifies. Thanks again for reviewing this PR. |
@arihantbansal Resolved! |
You are assuming that Voltr integration here would be for your platform or for someone who knows about it. But, what about cases where people are interested in building Defi agents which trade / invest for you. In this scenario, we do require ability to fetch details of different vaults. |
Pull Request Description
Related Issue
Fixes # (issue number)
Changes Made
This PR adds the following changes:
Implementation Details
@voltr/sdk
to instantiate aVoltrClient
VoltrClient
Transaction executed by agent
Example transaction: https://solana.fm/tx/GnUd38TMhtBYNv29nNAyESEWLwjHhUW6hraNrPE3RTF6LtdqNtnoBBqEKptT5JaWqv6TiFp6MeooUa9Rt7vMAu9?cluster=mainnet-alpha
Demo: https://x.com/voltrxyz/status/1875204418465059189
Prompt Used
Tested on autonomous mode.
Additional Notes
Checklist