package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type reward_kind =
  1. | Baking_reward_fixed_portion
  2. | Baking_reward_bonus_per_slot
  3. | Attesting_reward_per_slot
  4. | Liquidity_baking_subsidy
  5. | Seed_nonce_revelation_tip
  6. | Vdf_revelation_tip
val reward_from_constants : ?coeff:Tezos_protocol_environment_alpha.Q.t -> Constants_parametric_repr.t -> reward_kind:reward_kind -> Tez_repr.t

reward_from_constants ~coeff csts ~reward_kind returns the amount of rewards in Tez_repr.t for the given reward_kind, according to the given parameters in csts. The (optional) value coeff is a multiplicative factor applied to the rewards (default = 1). It verifies reward_from_constants ~coeff csts ~reward_kind = coeff * reward_from_constants csts ~reward_kind.

OCaml

Innovation. Community. Security.