Skip to content

p-token: Allow withdraw excess lamports from mint without authority #51

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

febo
Copy link
Contributor

@febo febo commented Apr 17, 2025

Problem

Currently there is no mechanism to withdraw excess lamports from mint accounts with no authority. In such scenarios, #48 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.

@febo febo requested review from joncinque and buffalojoec April 17, 2025 13:47
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.

1 participant