Skip to content

Allow withdraw excess lamports from mint without authority#424

Merged
febo merged 1 commit intomainfrom
febo/mint-as-authority
May 14, 2025
Merged

Allow withdraw excess lamports from mint without authority#424
febo merged 1 commit intomainfrom
febo/mint-as-authority

Conversation

@febo
Copy link
Copy Markdown
Contributor

@febo febo commented May 8, 2025

Problem

Currently there is no mechanism to withdraw excess lamports from mint accounts with no authority. In such scenarios, #404 proposes to allow the mint keypair to withdraw the excess lamports.

Solution

This PR updates the withdraw_excess_lamports instruction to allow withdraw when the authority is the same as the mint, it is a signer and the mint does not have an authority.

Closes #404

@febo febo requested a review from joncinque May 8, 2025 08:34
Copy link
Copy Markdown
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for turning this around so quickly!

@febo febo merged commit c6da2d8 into main May 14, 2025
20 checks passed
@febo febo deleted the febo/mint-as-authority branch May 14, 2025 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Recovery of Native SOL from Mint Accounts with Private Key Access

3 participants