Deposit and Withdrawal
Deposit
As liquidity providers deposit tokens, the pool's assets increase, and LP tokens are issued to the providers, representing the pool's liability.
Mathematically, this can be expressed as:
where are the initial asset and liability before the deposit, are the post-deposit asset and liability, and are the change in asset and liability.
The amount of token deposited, and the amount of liability increase are the same during the deposit action.
Withdrawal
As a recap, the coverage ratio of token is defined as follow,
Liquidity providers can redeem their LP tokens, which represent a portion of the liability, and receive the corresponding tokens in return when they withdraw their assets.
For example, in a pool with 100 USDT in assets and 100 USDT in liabilities, an LP holding 10 LP tokens can redeem 10 USDT. In this scenario, the asset liability management model would burn the 10 LP tokens, decrease the liability by 10 USDT, and decrease the asset by 10 USDT as it is returned to the LP.
Withdrawal when coverage ratio is at or above 100%
In the case where the asset has a coverage ratio at or above 100%, , withdrawal fees are waived as the system holds sufficient assets for these token accounts, and the withdrawal would not lower the coverage ratio.
We denote as the asset amount, as the liability amount, and are the changes in and respectively after the withdrawal action.
The amount of liability decrease is since the change in liability is negative. The amount of asset to be returned to the LP is denoted by since the change in asset is also negative.
The rate of change in liability is the same as asset as there is no fee. Therefore
LPs can get back the same amount of asset as the amount of LP token they are redeeming.
Withdrawal when coverage ratio is below 100%
For with a coverage ratio of less than 100%, the withdrawal fee is imposed to discourage users to withdraw in this . However, LPs can use the LP token of to withdraw at no fee if has coverage ratio greater than 100%, i.e. . This mechanism encourages LPs to withdraw over-covered assets while simultaneously burning the liability of under-covered assets, helping to bring the coverage ratios into equilibrium.
If the LPs like to withdraw the original asset that is under-covered, the action is still allowed but is penalized by a fee as it further deviates the pool from the equilibrium.
The penalty function is the marginal fee that would be imposed when the coverage ratio is at . It is formulated as follow,
Definition - 3.1
Where is the threshold coverage ratio where the penalty reaches 1. It is a configurable constant that determines the shape of the function.
The penalty function is the marginal fee that would be imposed when the coverage ratio is at .
Coverage ratio
Marginal Withdrawal fee
95%
0.00%
90%
0.08%
85%
0.39%
80%
1.23%
75%
3.01%
70%
6.25%
65%
11.58%
60%
19.75%
55%
31.64%
50%
48.23%
45%
70.61%
40%
100%
Table 3.1. Illustration of the withdrawal fee under different coverage ratios. is configured to be 0.4. For example, then the coverage ratio is 85%, withdrawing 1 unit of the under-covered asset, the result would be 0.9961. Note that this withdrawal fee can be 0 if they withdraw the over-covered asset.
The withdrawal fee formula ensures the following properties hold true.
Property 1. Low fee for normal coverage ratio while higher fee for extreme coverage ratio
The fee structure ensures minimal withdrawal fees for coverage ratios that are not extreme; for instance, at a 90% coverage ratio, the marginal fee is 0.08%. However, when the coverage ratio drops to an extreme value such as 70%, the marginal withdrawal fee increases to 6.25%.
High withdrawal fee is indeed a risk that LPs would face if one of the assets in the pool depegs, and the LPs have to pay a high withdrawal fee for the under-covered asset. However, It is important to note that LPs can wait for the coverage ratio to return to a higher value so the withdrawal fee returns to normal, or immediately withdraw assets with a coverage ratio greater than 1 with no fee.
Property 2. Lower bound for coverage ratio
As would approach 100% as reaches . The withdrawal fee ensures that the coverage ratio cannot go below , as further withdrawal would result in 100% fee and hence cannot lower . In this extreme scenario, LPs would be incentivized to withdraw the over-covered asset at no fee.
Calculation of the withdrawal amount
In the case of , the marginal fee at is given by , and the marginal withdrawal rate, for each unit of liability, is redeemable for unit of asset.
We have the following.
Since , and
Rearrange terms:
Substitute ,
Solve for constant , when
After simplifying and rearranging, we have the final result.
When an LP redeem amount of liability, given the initial asset , liability ,
Formula - 3.2
where and .
Last updated