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 #35160

Closed
wants to merge 3 commits into from

Conversation

najeal
Copy link
Contributor

@najeal najeal commented Feb 9, 2024

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

Amount ALL withdraws available SOL
@mergify mergify bot added community Community contribution need:merge-assist labels Feb 9, 2024
@mergify mergify bot requested a review from a team February 9, 2024 08:44
@github-actions github-actions bot added the stale [bot only] Added to stale content; results in auto-close after a week. label Feb 26, 2024
@github-actions github-actions bot removed the stale [bot only] Added to stale content; results in auto-close after a week. label Feb 28, 2024
@willhickey
Copy link
Contributor

This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave

@willhickey willhickey closed this Mar 3, 2024
@bartenbach
Copy link
Contributor

Thank you @najeal for your effort on this. Can you reopen?

Copy link
Contributor

mergify bot commented Mar 4, 2024

⚠️ The sha of the head commit of this PR conflicts with #35413. Mergify cannot evaluate rules on this PR. ⚠️

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
3 participants