-
Notifications
You must be signed in to change notification settings - Fork 59
feat(platform)!: halve contested name fee in protocol 14 #4634
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ada25de
feat(platform)!: halve contested name fee in protocol 14
QuantumExplorer 38a6716
refactor(platform): define fee version 3 for protocol 14
QuantumExplorer 5f4496f
style(drive-abci): format document deletion replay test
QuantumExplorer 4797b98
test(drive-abci): derive contest balances from protocol fees
PastaPastaPasta 3a1cada
Merge branch 'v4.2-dev' into codex/dpns-contested-fee-v14
PastaPastaPasta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| use crate::version::fee::v2::FEE_VERSION2; | ||
| use crate::version::fee::vote_resolution_fund_fees::v2::VOTE_RESOLUTION_FUND_FEES_VERSION2; | ||
| use crate::version::fee::FeeVersion; | ||
|
|
||
| /// Introduced in protocol version 14 (4.2). | ||
| pub const FEE_VERSION3: FeeVersion = FeeVersion { | ||
| // Contested contributions use the active protocol, so unchanged storage | ||
| // rates retain the historical fee_version_number inherited from FEE_VERSION2. | ||
| vote_resolution_fund_fees: VOTE_RESOLUTION_FUND_FEES_VERSION2, | ||
| ..FEE_VERSION2 | ||
| }; | ||
1 change: 1 addition & 0 deletions
1
packages/rs-platform-version/src/version/fee/vote_resolution_fund_fees/mod.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/rs-platform-version/src/version/fee/vote_resolution_fund_fees/v2.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| use crate::version::fee::vote_resolution_fund_fees::v1::VOTE_RESOLUTION_FUND_FEES_VERSION1; | ||
| use crate::version::fee::vote_resolution_fund_fees::VoteResolutionFundFees; | ||
|
|
||
| /// Introduced in protocol version 14 (4.2). | ||
| pub const VOTE_RESOLUTION_FUND_FEES_VERSION2: VoteResolutionFundFees = VoteResolutionFundFees { | ||
| contested_document_vote_resolution_fund_required_amount: 10_000_000_000, // 0.1 DASH | ||
| ..VOTE_RESOLUTION_FUND_FEES_VERSION1 | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Suggestion: Document the deliberate mismatch between FEE_VERSION3 and fee-version lookup identity
FEE_VERSION3 inherits
fee_version_number: 1, whileFeeVersion::as_static()resolves that number throughFEE_VERSIONSand therefore returns FEE_VERSION1. FEE_VERSION3 now differs from FEE_VERSION1 in the contested-document contribution, so a future caller that usesas_static()to recover the active fee schedule can silently obtain the old 20-billion-credit value. The inherited number is intentional for the existing storage-refund persistence scheme, but the new fee field makes the hazard materially more visible. Add an explicit warning at the constant or otherwise make the lookup API unable to present FEE_VERSION1 as FEE_VERSION3.source: ['codex']