Class LiquidityPoolConstantProductParameters

java.lang.Object
org.stellar.sdk.LiquidityPoolParameters
org.stellar.sdk.LiquidityPoolConstantProductParameters

public final class LiquidityPoolConstantProductParameters extends LiquidityPoolParameters
Base LiquidityPoolConstantProductParameters class.
See Also:
  • Constructor Details

    • LiquidityPoolConstantProductParameters

      public LiquidityPoolConstantProductParameters(Asset assetA, Asset assetB, int fee)
  • Method Details

    • toXdr

      public org.stellar.sdk.xdr.LiquidityPoolParameters toXdr()
      Generates XDR object from a given LiquidityPoolParameters object
      Specified by:
      toXdr in class LiquidityPoolParameters
    • fromXdr

      public static LiquidityPoolConstantProductParameters fromXdr(org.stellar.sdk.xdr.LiquidityPoolConstantProductParameters xdr)
      Generates LiquidityPoolConstantProductParameters object from a given XDR object
      Parameters:
      xdr - XDR object
    • getId

      public LiquidityPoolID getId()
      Specified by:
      getId in class LiquidityPoolParameters
      Returns:
      the liquidity pool ID.
    • getAssetA

      public Asset getAssetA()
      First asset in the liquidity pool
    • getAssetB

      public Asset getAssetB()
      Second asset in the liquidity pool
    • getFee

      public int getFee()
      Fee amount in base-points
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class LiquidityPoolParameters
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object