Pricing Formula
Last updated
Last updated
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 and are the ETH amount and the Power amount in the Virtual Liquidity Pool respectively. We adopt the AMM's constant product formula: to determine the price of Power and the ETH cost.
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,
From this, we can derive that
The price of Topic Power is
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
Assuming a user purchases Power with ETH (or Subtopic Power with y Topic Power), based on the AMM's constant product formula , we'd get
, and the average price of this transaction would be
The above calculation doesn't include trading fee. For details on these fees, please refer to Trading Fee.
Similarly, if a user sell Power, and would get ETH (or sell Subtopic Power and get y Topic Power),
, and the average price of this transaction would be