Struct chain_impl_mockchain::rewards::Parameters
source · pub struct Parameters {
pub initial_value: u64,
pub compounding_ratio: Ratio,
pub compounding_type: CompoundingType,
pub epoch_rate: NonZeroU32,
pub epoch_start: Epoch,
pub reward_drawing_limit_max: Limit,
pub pool_participation_capping: Option<(NonZeroU32, NonZeroU32)>,
}
Expand description
Parameters for rewards calculation. This controls:
- Rewards contributions
- Treasury cuts
Fields§
§initial_value: u64
This is an initial_value for the linear or halvening function. In the case of the linear function it is the value that is going to be calculated from the contribution.
compounding_ratio: Ratio
This is the ratio used by either the linear or the halvening function. The semantic and result of this is deeply linked to either.
compounding_type: CompoundingType
The type of compounding
epoch_rate: NonZeroU32
Number of epoch between reduction phase, cannot be 0
epoch_start: Epoch
When to start
reward_drawing_limit_max: Limit
Max Drawing limit
pool_participation_capping: Option<(NonZeroU32, NonZeroU32)>
Pool Capping This doesn’t really make sense
Implementations§
source§impl Parameters
impl Parameters
Trait Implementations§
source§impl Arbitrary for Parameters
impl Arbitrary for Parameters
source§impl Clone for Parameters
impl Clone for Parameters
source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Parameters
impl Debug for Parameters
source§impl PartialEq<Parameters> for Parameters
impl PartialEq<Parameters> for Parameters
source§fn eq(&self, other: &Parameters) -> bool
fn eq(&self, other: &Parameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Parameters
impl StructuralEq for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations§
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more