Sep24WithdrawAsset

public struct Sep24WithdrawAsset : Decodable, Sendable

Information about a withdrawal asset supported by an anchor.

Contains details about withdrawal capabilities, limits, and fees for a specific asset.

  • True if withdrawal for this asset is supported.

    Declaration

    Swift

    public let enabled: Bool
  • Minimum withdrawal amount. No limit if not specified.

    Declaration

    Swift

    public let minAmount: Double?
  • Maximum withdrawal amount. No limit if not specified.

    Declaration

    Swift

    public let maxAmount: Double?
  • Fixed (base) fee for withdraw. In units of the withdrawn asset. This is in addition to any fee_percent.

    Declaration

    Swift

    public let feeFixed: Double?
  • Percentage fee for withdraw in percentage points. This is in addition to any fee_fixed.

    Declaration

    Swift

    public let feePercent: Double?
  • Minimum fee in units of the withdrawn asset.

    Declaration

    Swift

    public let feeMinimum: Double?
  • Creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data