Fee class

Fee

Fee rate as a ratio, minted on UpdateStakePoolBalance as a proportion of the rewards. If either the numerator or the denominator is 0, the fee is considered to be 0.

Inheritance

Constructors

Fee({required u64 denominator, required u64 numerator})
const
Fee.fromJson(Map<String, dynamic> json)
factory

Properties

borshSchema → BorshSchema
Maps this class' properties to codecs.
no setteroverride
denominator → u64
Denominator of the fee ratio.
final
hashCode → u64
The hash code for this object.
no setterinherited
numerator → u64
Numerator of the fee ratio.
final
ratio → double
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

borshSize() → u64
Returns the serialized byte length of this instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBorsh() → Iterable<int>
Serializes this instance into a buffer.
inherited
toJson() → Map<String, dynamic>
Serialises this class into a JSON object.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

codec → BorshStructSizedCodec
no setter

Static Methods

tryFromJson(Map<String, dynamic>? json) → Fee?
Creates an instance of this class from the constructor parameters defined in the json object.
override