package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

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.