-
Notifications
You must be signed in to change notification settings - Fork 253
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
combining cooldown, unstake and withdraw into a bundle tx #97
Comments
having the same issue, anybody been able to figure? |
Can someone shares some code for combining cooldown, unstake and withdraw into a bundle tx? Thanks in advance. |
Thank you @johnwinsor for sharing. If one transaction with multiple istructions will be better. |
Made it work with one transaction: when you want to unske a nft, you need unstake,unstake(this is for ending the cooldown),withdraw and stake 4 instructions. but if the vault is empty, don't stake, otherwise it will give a error. action part:
In your farmClient:
In your backClient:
Tested, it is working for me. Only one wallet confirmation is needed, otherwise the wallet atleast popup 3 times to let you to confirm.
|
we had it working in the previous commit but now with the latest, unable to comprehend much. would be much help if someone can guide if its still possible :)
The text was updated successfully, but these errors were encountered: