Staking

public struct Staking : Codable, GlobalsXPRProtocol

Staking is the object which represents the accounts staking info, if any

  • The amount staked

    Declaration

    Swift

    public var staked: Asset
  • Whether or not the account is qualified to receive staking rewards. ie account has to be voting for 4 producers

    Declaration

    Swift

    public var isQualified: Bool
  • The reward amount in which the account can claim

    Declaration

    Swift

    public var claimAmount: Asset
  • The date of the last reward claim

    Declaration

    Swift

    public var lastclaim: Date
  • The list of producer names the account has voted for

    Declaration

    Swift

    public var producerNames: [Name]
  • Get globalsXPR settings

    Declaration

    Swift

    public var globalsXPR: GlobalsXPR? { get }
  • Undocumented

    Declaration

    Swift

    public var producers: [Producer] { get }
  • Formated staked without symbol and precision

    Declaration

    Swift

    public func stakedFormatted(forLocale locale: Locale = Locale(identifier: "en_US"),
                                withSymbol symbol: Bool = false, andPrecision precision: Bool = false) -> String
  • Formated claimAmount without symbol and precision

    Declaration

    Swift

    public func claimAmountFormatted(forLocale locale: Locale = Locale(identifier: "en_US"),
                                     withSymbol symbol: Bool = false, andPrecision precision: Bool = false) -> String