Sentre decides to tackles the four main problems in the DeFi market.
In 2020, Uniswap introduced its version 2, which mentioned the concept of programmable liquidity. At one point, it is similar to the concept of an open liquidity. They opened and conducted a method to implement on-chain price oracles, which can be considered open data. Uniswap also utilizes the atomic property of Ethereum to leverage flash swaps. In short, you can ask for tokens before paying them with some conditions. If the conditions aren’t met, the transaction will be rolled back. The flash swaps are a superpower for arbitrageurs to explore the price differential.
It’s clear that the liquidity openness on Uniswap is still limited when Liquidity Provider Token (LPT) cannot be consumed by other financial services. In the last half of 2020, the term “Yield Farming” was gathering notice as it accepted LPT to earn other tokens. However, these services are dependent on third parties without native support from Uniswap.
SushiSwap is a younger but more innovative AMM than existing platforms before. It provides a comprehensive DeFi market with many services including swap, yield farming, lending & borrowing, staking, and so on. All these services are built up by themselves, which means they fully control the liquidity and circulate it in their platform. On Solana, Raydium is the current top DEX. Currently, they have services such as swapping, staking, and farming. However, Raydium seems to share the same vision as SushiSwap when they maintain the private permission in DeFi services development.
It’s worth mentioning about the constant product function (CPF) which expresses the pricing curve in the aforementioned protocols. The main idea behind seems very simple, but it has strongly proved functionality and possibility in both experimentally and practically. The CPF formulates the quoted price via the pair of token reserves. Giving token
with corresponding reserves
, the algorithm will maintain the following equation,
is a constant defined at the initial state. In other words, let’s call α
the “changing rate” of
after an exchange (sell
for example). Then
, to maintain the constant product,
At an arbitrary timestamp
, the quoted price
. Therefore, the first liquidity provider (LP) must deposit both tokens, A and B, with reserves that satisfy the reference market price at the initial state,
. After the pool’s setup, subsequent LPs must follow the quoted price by depositing both tokens accordingly. But what if users only have one type of token? We call this problem Symmetric Deposit.
Definition 1. Let
be the current quoted price,
be the next quoted price, then a slippage rate,
Applying to the CPF,
The slippage rate is amplified when routing. When there are no direct pools for the desired pair of tokens, traders need to swap through other middle tokens before reaching the destination, and even then, there might be no route for said desired pair at all. This problem, called Swap Possibilities, reduces the liquidity effectiveness and affects user experience.
Lastly, one of the biggest risks of liquidity provision is impermanent loss. Due to price deviation or reserves deviation, from the initial state, the value of assets is no longer greater than or equal to a HODL strategy.
 K. Rapoza, “DeFi ‘Yield Farming’: How To Get DeFi Yield, And Why Invest In It,” 06 2021. [Online].
 G.Angeris, H.-T.Kao, R.Chiang, C.Noyes, and T.Chitra, “An Analysis of Uniswap Markets, ” Cryptoeconomic Systems Journal, 2019.
 HODL: Hold On for Dear Life, a slang among the cryptocurrency community, meaning you should hold a cryptocurrency instead of selling it.