Skip to content
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

Feat/send dust to treasury #193

Merged
merged 3 commits into from Mar 18, 2024
Merged

Feat/send dust to treasury #193

merged 3 commits into from Mar 18, 2024

Conversation

lrazovic
Copy link
Contributor

What?

When an account is closed but still holds a balance below the Existential Deposit (ED), some PLMC "dust" is generated. This dust should be directed to the Blockchain Operation Treasury instead of being burned.

Why?

The following extrinsic https://explorer.polimec.org/polimec/extrinsic/767479-2 resulted in the account of the sender being killed, and the residual dust was burned rather than allocated to the Blockchain Operation Treasury.

How?

We can adjust this behavior through the DustRemoval configuration option in the Balances pallet.

Testing?

A new integration test now compares the total issuance before and after a DustLost event to ensure the dust is properly accounted for.

@lrazovic lrazovic self-assigned this Mar 18, 2024
Copy link
Contributor

@JuaniRios JuaniRios left a comment

Choose a reason for hiding this comment

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

lgtm

@lrazovic lrazovic merged commit 92c3d45 into main Mar 18, 2024
@JuaniRios JuaniRios deleted the feat/dust-to-treasury branch March 26, 2024 08:18
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.

None yet

3 participants