Skip to content

Conversation

@dyodx
Copy link

@dyodx dyodx commented Dec 1, 2024

If I understand correctly, closing an account involves reducing the balance to exactly zero. The native close-account example currently reduces it to a non-zero amount--calculating the remaining rent after reducing the data_len to zero and reducing the balance by that amount, returning it to the payer. This PR reduces it to exactly zero and adds relevant tests.

@dyodx dyodx closed this by deleting the head repository Aug 18, 2025
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