ExchangeRate
public struct ExchangeRate : Codable, Equatable, DataConvertible
Undocumented
-
Undocumented
Declaration
Swift
public static let empty: Asset.ExchangeRate
-
Undocumented
Declaration
Swift
public var base: AssetAmount
-
Undocumented
Declaration
Swift
public var quote: AssetAmount
-
Undocumented
Declaration
Swift
public func asData() -> Data
-
quote & base asset ids cannot be the same, for quote any id can be used since it is modified to created asset id upon creation
Declaration
Swift
public static func forCreateOperation(dct: BigInt, uia: BigInt) -> ExchangeRate
Parameters
dct
base value in DCT
uia
quote value in UIA
Return Value
ExchangeRate