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. | Seed_nonce_revelation_tip
  5. | Vdf_revelation_tip

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.