LiquidityPoolTradeEffectResponse
public class LiquidityPoolTradeEffectResponse : EffectResponse, @unchecked Sendable
Represents a liquidity pool trade effect. This effect occurs when a trade is executed against a liquidity pool. The pool automatically provides liquidity for the trade based on its constant product formula. Triggered by Path Payment operations or trades that match against the pool. See Stellar developer docs
-
The liquidity pool details.
Declaration
Swift
public let liquidityPool: LiquidityPoolEffectResponse -
The asset reserve sold from the pool.
Declaration
Swift
public let sold: ReserveResponse -
The asset reserve bought from the pool.
Declaration
Swift
public let bought: ReserveResponse -
Declaration
Swift
public required init(from decoder: Decoder) throws
View on GitHub
Install in Dash