Exponential Curve
A exponential curve performs a multiplicative operation where the delta acts as a multiplier function. If the pool has just sold an NFT by giving out an NFT and receiving tokens, the next price it will quote to sell NFTs at will increase by a percentage amount (known as delta).
The price of the NFT increased by a percentage each time an item is bought from the pool. The reverse happens when an item is sold into the pool.
delta
is a percentage and assumes that the starting price is 100%. If input thedelta
as 20% it means we want the price to increase/decrease by 20% after each trade. For example, initial price is1Ξ
, after someone buys 1 NFT from the pool, the next price will increase by the delta to1.2Ξ
, conversely, if someone sells 1 NFT tot he pool, the next price will decrease by a multiple of the delta to0.8333Ξ
The delta is a percentage, and assumes that 100% (meaning no change to price after a buy/sell operation) is
1e18
. If we want the price to increase/decrease by 20% on each buy/sell, we should input1.2e18
to represent120% = (100% + 20%)
. The initial price is1.0
. After someone buys 1 NFT from the pool, the price will be1.2 = 1.0 * 120%
. If someone sells an NFT into the pool, the price will be0.8333 = 1.0 / 120%
.
Last updated