Keys to take away:
The only thing a trader cares is average trading price with small slippage as possible. Higher liquidity concentration makes lower price impact, smaller slippage.
BrownFi AMM offers capital efficiency and trading experience equivalently to Uniswap V3 pools. Particularly, BrownFi pool with is mostly equivalent to Uniswap V3 range .
If , then BrownFi pool and Uniswap V2 are identical.
Uniswap V2 introduced automated market making (AMM) based on a constant product market making (CPMM) formula , where the token price is defined by token reserve in the pool . Consider the pool with token reserve (10, 10), liquidity and swap constant with the initial price . A swap out of of token X must provide of token Y in exchange. The CPMM formula gives us
Uniswap V3 introduced the concentrated liquidity market making (CLMM) based on the orginal constant product (i.e. the CPMM formula), allowing us to find a curve limited by a price range such that it can serve the trade with optimal capital. Regarding Uniswap V3 model, a liquidity position is defined by both token reserve and a price range . The liquidity and swap constant of V3 model reads
,
where L is the virtual liquidity (comparable to the equivalent V2 model, i.e. ).
For simplicity and without loss of generality, we take price lower bound , price upper bound , symmetrically. For and , resulting range. For and , resulting range. Let consider 3 ranges of the same token reserve.
Uniswap V3 pool1 has reserve (10,10), range [-9.5%, +10.5%] (i.e. ). The constant product is having liquidity leverage (so capital efficiency)
Uniswap V3 pool2 has reserve (10,10), range . The constant product is , having capital efficiency
Uniswap V3 pool3 has reserve (10,10), range . The constant product is , having capital efficiency
Because and , we have . A swap out of of token X must provide of token Y in exchange. The CLMM formula gives
and hence
BrownFi AMM introduced a novel oracle-based AMM model. Given a token reserve and an amount of token X to be swapped out, trader must pay of token Y in exchange, simply defined by:
, where is the global price fed by oracle;
The term is related to slippage (alternatively, price impact), where ;
Kappa () is the parameter controlling liquidity concentration on BrownFi's pools.
We consider four liquidity concentration on BrownFi AMM, controlled by .
The average trading price is the only thing a trader cares, defined by . Smaller price impact, closer trading price to global price, better experience for average traders. Higher liquidity concentration makes lower price impact, smaller slippage, better trading experience. Standardizing token reserve (10,10), initial price for all pools of Uniswap and BrownFi's AMMs, we will compare price slippage between them. In prior to comparison, we find the intersections of the slippage curves (equivalently price impact curves). Each intersection represents order size (over the total of 10 token reserve) and percentage of slippage.
Easily see that Uniswap V2 causes greater slippage than all BrownFi pool (for ). Particularly, if , then BrownFi and Uniswap V2 are identical.
Regarding three Uniswap V3 pools, each BrownFi pool () has lower slippage on the left side of the intersecting point, greater on the right, respectively. Particularly, BrownFi is mostly equivalent to Uniswap V3 range .
Further on capital efficiency comparison, we have: