Mavryk_raw_protocol_001_PtAtLas.Issuance_bonus_reprIssuance bonus.
The issuance bonus is a rational but is stored as fixed point integer to limit the serialized size as with Q we would have no control on the size each component (numerator, denominator).
It is expected to always be between 0 and the protocol's parametric constant max_bonus. The int64 encoding of the bonus is made such that the approximation resulting of this encoding is negligible when the bonus is used in a context where the total supply of the network is in the order of magnitude of 2^50 mumav (10^15 mumav)
type t = private Mavryk_protocol_environment_001_PtAtLas.Q.tAn issuance bonus is a rational between zero and some max_bonus.
type max_bonus = private tA max_bonus is a value between zero and one.
val zero : tval encoding : t Mavryk_protocol_environment_001_PtAtLas.Data_encoding.tval max_bonus_encoding :
max_bonus Mavryk_protocol_environment_001_PtAtLas.Data_encoding.tval of_Q :
max_bonus:max_bonus ->
Mavryk_protocol_environment_001_PtAtLas.Q.t ->
t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresultGetting a bonus out of rational. It will fail if the decoding doesn't provide a value that is valid wrt protocol's parametric constants
val max_bonus_parameter_of_Q_exn :
Mavryk_protocol_environment_001_PtAtLas.Q.t ->
max_bonusUse only to define the max_bonus parameter from Default_parameters.