package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type slashed_percentage = Int_percentage.t
val add : Cycle_repr.t -> slashed_percentage -> t -> t

add cycle percentage history adds the percentage for the cycle in the history. If the cycle exists, the associated percentage is updated and capped at 100 and the cycle order in the list is unchanged. If the cycle does not exist, the new pair (cycle, percentage) is added at the beginning of the list.

get cycle history returns the percentage for cycle in history or 0 if there is no such cycle.

OCaml

Innovation. Community. Security.