Mavryk_raw_protocol_alpha.Stake_context
Functions on stake and depending on the context.
val apply_limits :
Raw_context.t ->
Staking_parameters_repr.t ->
Full_staking_balance_repr.t ->
Stake_repr.t Mavryk_protocol_environment_alpha.Error_monad.tzresult
Apply the delegation_over_baking and staking_over_baking limits of a delegate. Overstaked mav count as delegated, overdelegated mav do not count at all.
val baking_weight :
Raw_context.t ->
Staking_parameters_repr.t ->
Full_staking_balance_repr.t ->
int64 Mavryk_protocol_environment_alpha.Error_monad.tzresult
The weight of a baker used for baking and attesting rights.
val optimal_frozen_wrt_delegated_without_ai :
Raw_context.t ->
Full_staking_balance_repr.t ->
Tez_repr.t Mavryk_protocol_environment_alpha.Error_monad.tzresult