Skip to content
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

Withdraw available amount from stake account #35413

Closed
wants to merge 3 commits into from

Conversation

najeal
Copy link
Contributor

@najeal najeal commented Mar 4, 2024

This is a PR @willhickey & @bartenbach asked to re-open in the Repository.

Problem
As said in #34738 there is no way to withdraw the amount from the difference between the Balance of the stake account and Active Stake.

Summary of Changes
The method resolve_spend_tx_and_check_account_balances has specific logic for account being stake account.
We use the function get_account_stake_state to calculate the balance available for withdraw. This function is just the logic of process_show_stake_account that have been extracted for reuse.

Fixes #34738

@mergify mergify bot added community Community contribution need:merge-assist labels Mar 4, 2024
@mergify mergify bot requested a review from a team March 4, 2024 12:17
@najeal najeal closed this Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method to withdraw all unstaked SOL from stake accounts
1 participant