fromXdr

Creates a LiquidityPool from its XDR representation.

Return

A new LiquidityPool object

Parameters

xdr

The XDR object to convert from

Throws

if the XDR discriminant is not LIQUIDITY_POOL_CONSTANT_PRODUCT