Skip to main content

moderators_share_of

Function moderators_share_of 

Source
pub fn moderators_share_of(
    declared_moderators: Credits,
    moderators_share: u8,
) -> Credits
Expand description

The moderators part a seated charter’s team charges for an action whose document type declares declared_moderators: moderators_share percent of it, rounded down to the credit. A document action on a type the target moderates may agree to exactly this amount instead of the declared one; it is then charged this amount, and nothing else below the declared amount is accepted. A share of 100 (or none declared) gives the declared amount itself.