Struct MintRate
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
Rate of creation of new CCDs. For example, A value of 0.05
would mean an
increase of 5 percent per unit of time. This value does not specify the time
unit, and this differs based on the protocol version.
The representation is base-10 floating point number representation.
The value is mantissa * 10^(-exponent)
.
public readonly record struct MintRate : IEquatable<MintRate>
- Implements
- Inherited Members
Methods
GetValues()
Get Exponent and Mantissa
public (uint Exponent, uint Mantissa) GetValues()
Returns
TryParse(uint, uint, out MintRate?)
Creates a new mint rate if exponent doesn't exceed 255.
public static bool TryParse(uint exponent, uint mantissa, out MintRate? mintRate)
Parameters
exponent
uintExponent represented as a byte since max value is 255.
mantissa
uintMantissa
mintRate
MintRate?Parsed Mint Rate.
Returns
- bool
True if exponent doesn't exceed 255.