Sentre
Search…
Industry Problems
Sentre decides to tackles the four main problems in the DeFi market.

# Liquidity Openness

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.[1]
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.[2]
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.[3]

# Symmetric Deposit

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[4] and practically. The CPF formulates the quoted price via the pair of token reserves. Giving token
$A$
, and
$B$
with corresponding reserves
$R_A$
,
$R_B$
, the algorithm will maintain the following equation,
(1)
$R_A*R_B=k$
where
$k>0$
is a constant defined at the initial state[5]. In other words, let’s call α
$α$
the “changing rate” of
$R_A$
after an exchange (sell
$A$
$B$
for example). Then
$R'_A=\frac{1}{α} R_A$
induces
$R'_B = αR_B$
, where
$0<α<1$
, to maintain the constant product,
(2)
$R_A× R_B = R'_A×R'_B= k$
At an arbitrary timestamp
$t$
, the quoted price
$p^{(t)}=R^{(t)}_B/R^{(t)}_A$
. 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,
$p^{(0)}=R^{(0)}_B/R^{(0)}_A$
. 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.

# Swap Possibilities

Definition 1. Let
$p$
be the current quoted price,
$p'$
be the next quoted price, then a slippage rate,
(3)
$s=\frac{p'}{p}$
.
Applying to the CPF,
(4)
$s=\frac{R'_B/R'_A}{R_B/R_A}=α^2.$
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.

# Impermanent Loss

Lastly, one of the biggest risks of liquidity provision is impermanent loss[6]. 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[7].
______________________________
[1] H. Adams, N. Zinsmeister, and D. Robinson, “Uniswap v2 core,” 2 2020. [Online].
[3] Raydium Team, “Raydium Protocol Litepaper,” 03 2021. [Online].
[4] G.Angeris, H.-T.Kao, R.Chiang, C.Noyes, and T.Chitra, “An Analysis of Uniswap Markets,” Cryptoeconomic Systems Journal, 2019.
[5] H. Adams, “Uniswap Whitepaper,” 11 2018. [Online].
[6] N. Hindman, “Beginner’s Guide to (Getting Rekt by) Impermanent Loss,” 11 2020. [Online].
[7] HODL: Hold On for Dear Life, a slang among the cryptocurrency community, meaning you should hold a cryptocurrency instead of selling it.