package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Deposits_repr/index.html

Module Tezos_raw_protocol_alpha.Deposits_reprSource

Sourcetype t = {
  1. initial_amount : Tez_repr.t;
  2. current_amount : Tez_repr.t;
}

Type representing frozen deposits for a cycle.

It is used both for frozen deposits and unstaked frozen deposits with slightly different behaviours.

initial_amount is the amount on which slashing should be based. current_amount is the current amount after slashing has happened.

For frozen deposits, a single record is maintained with the invariant initial_amount = current_amount at the beginning of a cycle.

For unstaked frozen deposits, there is a record per cycle. The values of all unslashable cycles are squashed together at cycle ends. The initial_amount may be increased during the current cycle only, when an unstake is requested.

TODO #5788: possibly rename fields

Sourceval zero : t
OCaml

Innovation. Community. Security.