astroband/ruby-stellar-sdk

View on GitHub
base/lib/stellar/liquidity_pool/constant_product_pool.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
75%
require_relative "base_pool"

module Stellar
  module LiquidityPool
    class ConstantProductPool < BasePool
      def pool_type
        LiquidityPoolType.constant_product
      end

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