Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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