DipDupPositionData
public struct DipDupPositionData : Codable, Hashable, Equatable
A position on DipDup corresponds to liquidity token ownership. Each of these objects represents an amount of Liquidity tokens in an exchange for the given address
-
The liquidity token balance (rpc representation)
Declaration
Swift
public let sharesQty: String -
The exchange the token belongs too
Declaration
Swift
public let exchange: DipDupExchange -
Convert the token data into a
TokenAmountDeclaration
Swift
public func tokenAmount() -> TokenAmount -
Conforming to
Hashableto enable working with UITableViewDiffableDataSourceDeclaration
Swift
public func hash(into hasher: inout Hasher) -
Conforming to
Equatableto enable working with UITableViewDiffableDataSourceDeclaration
Swift
public static func == (lhs: DipDupPositionData, rhs: DipDupPositionData) -> Bool
Install in Dash