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

Split pos_accounting::PoolData::pledge_amount into pledge and reward #1440

Merged
merged 6 commits into from
Jan 15, 2024

Conversation

azarovh
Copy link
Member

@azarovh azarovh commented Jan 10, 2024

Previously pledge_amount represented original pledge + accumulated reward. This PR splits it into 2 distinct fields to make it possible in the future to spend reward without decommissioning the pool.

Note that this PR contains breaking change for api-server database.

@azarovh azarovh force-pushed the split_pledge_into_fields branch from 7725a93 to 885f020 Compare January 12, 2024 10:11
@azarovh azarovh merged commit 27a0d30 into master Jan 15, 2024
22 checks passed
@azarovh azarovh deleted the split_pledge_into_fields branch January 15, 2024 13:24
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.

3 participants