pub struct VoteResolutionFundFees {
pub contested_document_vote_resolution_fund_required_amount: u64,
pub contested_document_vote_resolution_unlock_fund_required_amount: u64,
pub contested_document_single_vote_cost: u64,
pub moderation_vote_resolution_fund_required_amount: u64,
pub contested_document_contenders_before_fund_doubling: u16,
pub contested_document_contenders_per_fund_doubling: u16,
}Fields§
§contested_document_vote_resolution_fund_required_amount: u64This is the amount that will be deducted from an identity and used to pay for voting
contested_document_vote_resolution_unlock_fund_required_amount: u64This is the amount that will be deducted from an identity and used to pay for voting if we are currently locked
contested_document_single_vote_cost: u64This is the amount that a single vote will cost
moderation_vote_resolution_fund_required_amount: u64The amount deducted from an identity that applies in a moderation election (an
electedCharter create on the moderation charters contract), prefunding the
masternode votes; what is left when the poll ends is released as processing fees.
Shared by the application, challenge and amendment polls. Moderation elections exist
from protocol version 14; every earlier schedule carries the contested document
amount here, so choosing between the two changes nothing before 14.
contested_document_contenders_before_fund_doubling: u16How many contenders a contest holds before the fund a contender joining it pays first
doubles: joining a contest holding fewer, a new one included, costs the contest’s fund.
Read with contested_document_contenders_per_fund_doubling, by contested document
create state validation 2 only.
contested_document_contenders_per_fund_doubling: u16How many more contenders a contest holds for each further doubling of the fund a
contender joining it pays: joining a contest holding n contenders, at least
contested_document_contenders_before_fund_doubling (b), costs the contest’s fund
times 2^(1 + (n - b) / this). 0 means the fund never doubles, what every schedule
before protocol version 14 carries.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for VoteResolutionFundFees
impl<'__de, __Context> BorrowDecode<'__de, __Context> for VoteResolutionFundFees
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Source§impl Clone for VoteResolutionFundFees
impl Clone for VoteResolutionFundFees
Source§fn clone(&self) -> VoteResolutionFundFees
fn clone(&self) -> VoteResolutionFundFees
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more