Mavryk_raw_protocol_alpha.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_alpha.Data_encoding.t
val balance_update_encoding :
[ `Credited of t | `Debited of t ]
Mavryk_protocol_environment_alpha.Data_encoding.t
val zero : t
val of_z_exn : Mavryk_protocol_environment_alpha.Z.t -> t
val to_int64 : t -> Mavryk_protocol_environment_alpha.Int64.t
val to_z : t -> Mavryk_protocol_environment_alpha.Z.t
val init_of_tez : Tez_repr.t -> t
val (+?) : t -> t -> t Mavryk_protocol_environment_alpha.Error_monad.tzresult
val (-?) : t -> t -> t Mavryk_protocol_environment_alpha.Error_monad.tzresult
val mul_ratio :
rounding:[ `Down | `Up ] ->
t ->
num:int64 ->
den:int64 ->
t Mavryk_protocol_environment_alpha.Error_monad.tzresult
See Tez_repr.mul_ratio
.
val pp : Mavryk_protocol_environment_alpha.Format.formatter -> t -> unit