LiquidityPoolPriceResponse
public struct LiquidityPoolPriceResponse : Decodable, Sendable
Represents a price ratio in a liquidity pool. The price is represented as a fraction with a numerator and denominator. See Stellar developer docs
-
The numerator of the price fraction.
Declaration
Swift
public let n: Int -
The denominator of the price fraction.
Declaration
Swift
public let d: Int -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash