Class: Stellar::LiquidityPool::ConstantProductPool

Inherits:
BasePool
  • Object
show all
Defined in:
lib/stellar/liquidity_pool/constant_product_pool.rb

Instance Attribute Summary

Attributes inherited from BasePool

#asset_a, #asset_b, #fee

Instance Method Summary collapse

Methods inherited from BasePool

#id, #initialize, #inspect, #to_change_trust_asset, #to_pool_id, #to_s, #to_trust_line_asset

Constructor Details

This class inherits a constructor from Stellar::LiquidityPool::BasePool

Instance Method Details

#pool_paramsObject



10
11
12
# File 'lib/stellar/liquidity_pool/constant_product_pool.rb', line 10

def pool_params
  LiquidityPoolParameters.constant_product(asset_a: asset_a, asset_b: asset_b, fee: fee)
end

#pool_typeObject



6
7
8
# File 'lib/stellar/liquidity_pool/constant_product_pool.rb', line 6

def pool_type
  LiquidityPoolType.constant_product
end