Mavryk_raw_protocol_001_PtAtLas.Staking_pseudotoken_repr
Pseudotoken used in staking. It represents a share of the total frozen deposits of a baker.
val encoding : t Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val balance_update_encoding :
[ `Credited of t | `Debited of t ]
Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val zero : t
val of_z_exn : Mavryk_protocol_environment_001_PtAtLas.Z.t -> t
val to_int64 : t -> Mavryk_protocol_environment_001_PtAtLas.Int64.t
val to_z : t -> Mavryk_protocol_environment_001_PtAtLas.Z.t
val init_of_tez : Tez_repr.t -> t
val (+?) :
t ->
t ->
t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
val (-?) :
t ->
t ->
t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
val mul_ratio :
rounding:[ `Down | `Up ] ->
t ->
num:int64 ->
den:int64 ->
t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
See Tez_repr.mul_ratio
.
val pp : Mavryk_protocol_environment_001_PtAtLas.Format.formatter -> t -> unit