Skip to content

program: Relax minimum rent check#79

Draft
febo wants to merge 3 commits into
mainfrom
febo/relax-minimum-rent-check
Draft

program: Relax minimum rent check#79
febo wants to merge 3 commits into
mainfrom
febo/relax-minimum-rent-check

Conversation

@febo
Copy link
Copy Markdown
Contributor

@febo febo commented Jun 3, 2026

Problem

Currently, Allocate, Extend, Initialize and Write include explicit minimum rent exempt, but could rely on the runtime instead.

Solution

For Allocate and Initialize, replace the minimum rent check by a check that account must have lamports; these are the only 2 instructions that can create the PDA. Remove the rent exempt check in Extend and Write since these instructions require an initialized account with data.

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