Class LiquidityPoolParameters

java.lang.Object
org.stellar.sdk.LiquidityPoolParameters
Direct Known Subclasses:
LiquidityPoolConstantProductParameters

public abstract class LiquidityPoolParameters extends Object
Base LiquidityPoolParameters class.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static Integer
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.stellar.sdk.xdr.LiquidityPoolType type, Asset a, Asset b, int feeBP)
    LiquidityPoolParameters represents the parameters specifying a liquidity pool.
    abstract boolean
    equals(Object object)
     
    fromXdr(org.stellar.sdk.xdr.LiquidityPoolParameters xdr)
    Generates LiquidityPoolParameters object from a given XDR object
     
    abstract org.stellar.sdk.xdr.LiquidityPoolParameters
    Generates XDR object from a given LiquidityPoolParameters object

    Methods inherited from class java.lang.Object

    getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • create

      public static LiquidityPoolParameters create(org.stellar.sdk.xdr.LiquidityPoolType type, Asset a, Asset b, int feeBP)
      LiquidityPoolParameters represents the parameters specifying a liquidity pool.
      Parameters:
      type - Type of the liquidity pool
      a - First asset in the liquidity pool
      b - Second asset in the liquidity pool
      feeBP - Fee amount in base-points
    • fromXdr

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

      public abstract boolean equals(Object object)
      Overrides:
      equals in class Object
    • toXdr

      public abstract org.stellar.sdk.xdr.LiquidityPoolParameters toXdr()
      Generates XDR object from a given LiquidityPoolParameters object
    • getId

      public abstract LiquidityPoolID getId()
      Returns:
      the liquidity pool ID.