1. Home
  2. Functions and Features
  3. Liquidity Pools

Liquidity Pools

Liquidity Pools are part of the bitshares-core 5.0, which are providing a fully automated and autonomous onchain liquidity.

On BitShares Blockchain, Liquidity Pool is an asset that can be created by any user in order to automate market making for a pair of two different assets; one of those assets might be BTS while the other can be any other users issued assets; creator of the asset “liquidity pool” cannot issue from “liquidity pool” asset to any user directly; Blockchain will be issuing “liquidity pool” assets to associated users who had deposited into the “liquidity pool”; the first “liquidity pool” deposit which must be done by “liquidity pool” creator would determine the starting price of “liquidity pool”, its the price of next exchange between both of assets within liquidity pool; next price of liquidity pool would be changing automatically, any user who has balance from both of assets of the liquidity pool can deposit in liquidity pool in regards to liquidity pool’s price, users on BitShares can exchange with the liquidity pool as if its a market, to sell/buy and can stake their liquidity as deposit and withdraw them including a “shared revenue” of the liquidity pool, assets in liquidity pool doesn’t belong to “liquidity pool” creator; hence “liquidity pool” creator can delete liquidity pool ONLY in case its empty and can only decide taker/maker % while creating it but cannot change them after creating the liquidity pool.



The exchange rate is defined by:

  • constant product model: k = amount_x * amount_y
  • pool taker fees, contributed to the pool token holders
  • asset fees, contributed to the asset owner


Both assets are needed in equal amounts at the current pool price. Liquidity Pools, which use a (Market Pegged Asset)/Collateral pair, can be used to stake a long, neutral or short position.

Example: 1.19.66 – HONEST.BTCBTSMM

  • HONEST.BTC Long – BTS Short: Sell 50% of the BTS for the HONEST.BTC part.
  • HONEST.BTC/BTS Neutral: Borrow the 50% HONEST.BTC and add an extra 50% BTS.
  • HONEST.BTC Short – BTS Long: Use all BTS for borrowing. Sell 50% of your HONEST.BTC for the BTS part.


Withdrawing funds from the pool burns the pool token and reduces the pool token supply. Withdraw fees are shared to the remaining pool token holders.





  • liquidity_pool_create_operation
  • liquidity_pool_delete_operation
  • liquidity_pool_deposit_operation
  • liquidity_pool_withdraw_operation
  • liquidity_pool_exchange_operation


  • asset_a
  • asset_b
  • balance_a
  • balance_b
  • share_asset
  • taker_fee_percent
  • virtual_value