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
TokenAmount
Declaration
Swift
public func tokenAmount() -> TokenAmount
-
Conforming to
Hashable
to enable working with UITableViewDiffableDataSourceDeclaration
Swift
public func hash(into hasher: inout Hasher)
-
Conforming to
Equatable
to enable working with UITableViewDiffableDataSourceDeclaration
Swift
public static func == (lhs: DipDupPositionData, rhs: DipDupPositionData) -> Bool