governance-ui icon indicating copy to clipboard operation
governance-ui copied to clipboard

Make it possible to easily recover SOL from unused program upgrade buffers

Open SebastianBor opened this issue 3 years ago • 3 comments

Summary

When a proposal to upgrade a program is created but not voted on then the SOL used for its rent should be easily recoverable

Solution

Create UI logic to find all outstanding buffer and create a proposal to close them similarly to solana program close -buffer

SebastianBor avatar Jan 11 '22 18:01 SebastianBor

If this issue is still open, I'd like to take a crack at it! Can you explain what would normally happen if it's not voted on currently? Would the SOL used just sit somewhere until you use solana program close -buffer in the CLI?

masayafunakoshi1 avatar Feb 23 '22 18:02 masayafunakoshi1

this issue has been taken care of https://github.com/solana-labs/governance-ui/pull/375

If you crate a proposal to upgrade a program you have to allocate a buffer and transfer authority to governance. If then proposal is not successful that buffer remains and holds the rent SOL

SebastianBor avatar Feb 23 '22 19:02 SebastianBor

this issue has been taken care of https://github.com/solana-labs/governance-ui/pull/375

@abrzezinski94 should this be closed based on the above?

tomjohn1028 avatar Nov 29 '22 21:11 tomjohn1028