Topic.Market Docs
  • Welcome
    • Welcome to Topic.Market
    • What is Topic.Market?
    • Trading Process
    • Automatically Priced Asset
  • Trading Mechanism
    • Pricing Formula
    • Burning Mechanism and Floor Price
  • Getting Started
    • Homepage
    • Topic Trading Page
    • Propose Topics
Powered by GitBook
On this page
  • Virtual Liquidity Pool
  • Total Supply, Initial Liquidity and
  • Buying Process
  • Selling Process
  1. Trading Mechanism

Pricing Formula

Virtual Liquidity Pool

The trading of Power adopts AMM's constant product formula. Here, we introduce the concept of a 'virtual liquidity pool'. This liquidity pool doesn't actually exist; we use this concept to explain the calculation of the price of Power.

Suppose Liquidity(ETH)Liquidity(ETH)Liquidity(ETH) and Liquidity(Power)Liquidity(Power)Liquidity(Power) are the ETH amount and the Power amount in the Virtual Liquidity Pool respectively. We adopt the AMM's constant product formula: Liquidity(ETH)×Liquidity(Power)=kLiquidity(ETH) \times Liquidity(Power) = kLiquidity(ETH)×Liquidity(Power)=k to determine the price of Power and the ETH cost.

Total Supply, Initial Liquidity and kkk

The Topic Power price starts from 0.001 ETH. The Subtopic Power price starts from 1 Topic Power.

When a Topic is launching, its Total Supply is determined by the popularity of the Topic. Typically, it ranges between 5,000 and 50,000, with 10,000 being the most common.

Initially, the total supply of Power is all in the virtual liquidity pool, Liquidityinitial(Power)=TotalSupplyLiquidity_{initial}(Power) = TotalSupplyLiquidityinitial​(Power)=TotalSupply

From this, we can derive that Liquidityinitial(ETH)=0.001×TotalSupplyLiquidity_{initial}(ETH)=0.001\times TotalSupplyLiquidityinitial​(ETH)=0.001×TotalSupply

k=Liquidityinitial(ETH)×Liquidityinitial(Power)=0.001×TotalSupply2k=Liquidity_{initial}(ETH)\times Liquidity_{initial}(Power)=0.001\times TotalSupply^2k=Liquidityinitial​(ETH)×Liquidityinitial​(Power)=0.001×TotalSupply2

The price of Topic Power is 0.001×(TotalSupplyLiquidity(Power))2 ETH0.001 \times \left(\frac{TotalSupply}{Liquidity(Power)}\right)^2 \, \text{ETH}0.001×(Liquidity(Power)TotalSupply​)2ETH

We set a Subtopic's total power supply to be 1/20 of its Topic's total power supply. For example, if the total supply of a topic power is 10,000, each of its Subtopic will have a 500 total supply.

Thus, the price of Subtopic Power is 0.0025×(TotalSupplyLiquidity(Power))2 Topic Power0.0025 \times \left(\frac{TotalSupply}{Liquidity(Power)}\right)^2 \, \text{Topic Power}0.0025×(Liquidity(Power)TotalSupply​)2Topic Power

Buying Process

Assuming a user purchases xxx Power with yyy ETH (or xxx Subtopic Power with y Topic Power), based on the AMM's constant product formula (Liquidity(ETH)+y)×(Liquidity(Power)−x)=k(Liquidity(ETH)+ y)\times (Liquidity(Power)-x) = k(Liquidity(ETH)+y)×(Liquidity(Power)−x)=k, we'd get

x=Liquidity(Power)−kLiquidity(ETH)+yx=Liquidity(Power) - \frac{k}{Liquidity(ETH) + y}x=Liquidity(Power)−Liquidity(ETH)+yk​, and the average price of this transaction would be yx\frac{y}{x}xy​

Selling Process

Similarly, if a user sell xxx Power, and would get yyy ETH (or sell xxx Subtopic Power and get y Topic Power),

y=Liquidity(ETH)−kLiquidity(Power)+xy=Liquidity(ETH) - \frac{k}{Liquidity(Power) + x}y=Liquidity(ETH)−Liquidity(Power)+xk​, and the average price of this transaction would be yx\frac{y}{x}xy​

PreviousAutomatically Priced AssetNextBurning Mechanism and Floor Price

Last updated 1 year ago

The above calculation doesn't include trading fee. For details on these fees, please refer to .

Trading Fee