Skip to main content

Swap Examples

Below are some examples of trades on the CFMM swap, calculated with the assumption starting liquidity pools of 1,000,000 in each of the two assets.

#Pre Trade Asset1 PoolPre Trade Asset2 PoolPre Trade Pool RatioTrade Asset1 InTrade Asset2 OutTrade Trade FXPost Trade Asset1 PoolPost Trade Asset2 PoolPost Trade Pool Ratio
11,000,000.001,000,000.001.00001,000.001,000.001.00001,001,000.00999,000.001.0020
21,000,000.001,000,000.001.000010,000.0010,000.001.00001,010,000.00990,000.001.0202
31,000,000.001,000,000.001.0000100,000.00100,000.001.00001,100,000.00900,000.001.2222
41,000,000.001,000,000.001.0000500,000.00499,032.591.00191,500,000.00500,967.412.9942
51,000,000.001,000,000.001.0000750,000.00728,519.421.02951,750,000.00271,480.586.4461

When starting from a balanced pool, even on trades which are very large (75%) compared to the pool size, the traded FX remains very close to 1.00.