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

stake-pool: Fund rent-exemption from reserve in decrease_additional #5288

Merged
merged 7 commits into from
Sep 20, 2023

Conversation

joncinque
Copy link
Contributor

Problem

We should fund the rent-exempt reserve for the transient stake account from the stake pool reserve during decrease.

Solution

To start with, require the reserve during decrease_additional_validator_stake, and then withdraw the rent-exemption from the reserve during processing.

The next step after this is to create a new instruction for a normal decrease without an ephemeral stake account. Or we could deprecate the old one and force people to always use this one.

2501babe
2501babe previously approved these changes Sep 20, 2023
@mergify mergify bot dismissed 2501babe’s stale review September 20, 2023 19:35

Pull request has been modified.

@joncinque joncinque merged commit 7492e38 into solana-labs:master Sep 20, 2023
@joncinque joncinque deleted the spdecaddl branch September 20, 2023 20:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants