In the previous section, we derived the value of a CenturionDEX v3 position as a function of the current price. We now use those formulas to study impermanent loss in a systematic way.
Consider a CenturionDEX v3 position defined by a price interval [pa,pb] and liquidity parameter L. Let p0 denote the entry price, that is, the market price at the moment the position is opened. Let
x0=x(p0),y0=y(p0)
be the initial real balances of tokens X and Y contributed by the liquidity provider. For any current price p>0, let
x(p),y(p)
denote the current real balances of the position.
As before, the value of the position, expressed in units of token Y, is
V(p)=x(p)p+y(p).
If, instead of depositing liquidity, the provider had simply held the initial token amounts x0 and y0, then the value of that passive portfolio at price p would be
W(p)=x0p+y0.
We define the impermanent-loss fraction by
IL(p)=W(p)V(p)−1.
Thus, IL(p) measures the relative difference between the value of the LP position and the value of passively holding the original assets.
This analysis generalizes the numerical position studied earlier in the example above, where the parameters were
pa=2500,pb=4900,p0=3600,L=2100.
We now distinguish three cases, depending on the location of the entry price p0 relative to the chosen interval.
Case 1: pa≤p0≤pb
In this case, the position is opened inside its active interval. Therefore, the initial balances are
x0=L(p01−pb1),y0=L(p0−pa).
Subcase 1.1: pa≤p≤pb
When the current price remains inside the interval, the current balances are
If the price rises above the range, the position is entirely held in token Y, so
x(p)=0,y(p)=L(pb−pa).
Hence,
V(p)=L(pb−pa),
and
IL(p)=p(p01−pb1)+p0−papb−pa−1.
Case 2: p0≤pa
In this case, the position is opened below the chosen interval, so the provider initially deposits only token X. The initial balances are
x0=L(pa1−pb1),y0=0.
Subcase 2.1: p≤pa
As long as the price remains below the interval, the position stays entirely in token X. Therefore,
x(p)=L(pa1−pb1),y(p)=0.
So,
V(p)=Lp(pa1−pb1)=W(p),
and hence
IL(p)=0.
There is no impermanent loss in this regime because the LP position coincides with simply holding token X.
Subcase 2.2: pa≤p≤pb
Once the price enters the interval, the balances become
x(p)=L(p1−pb1),y(p)=L(p−pa).
Therefore,
V(p)=L(2p−pbp−pa),
while
W(p)=Lp(pa1−pb1).
Thus,
IL(p)=p(pa1−pb1)2p−pbp−pa−1.
Subcase 2.3: p≥pb
If the price rises above the interval, then
x(p)=0,y(p)=L(pb−pa).
Hence,
V(p)=L(pb−pa),
whereas
W(p)=Lp(pa1−pb1).
After simplification, we obtain
IL(p)=ppapb−1.
Case 3: p0≥pb
In this case, the position is opened above the chosen interval, so the provider initially deposits only token Y. The initial balances are
x0=0,y0=L(pb−pa).
Subcase 3.1: p≤pa
If the price falls below the interval, then the position is entirely converted into token X, so
x(p)=L(pa1−pb1),y(p)=0.
Thus,
V(p)=Lp(pa1−pb1),
while
W(p)=L(pb−pa).
Therefore,
IL(p)=papbp−1.
Subcase 3.2: pa≤p≤pb
Inside the interval, the balances are again
x(p)=L(p1−pb1),y(p)=L(p−pa).
Hence,
V(p)=L(2p−pbp−pa),
and since W(p)=L(pb−pa), we get
IL(p)=pb−pa2p−pbp−pa−1.
Subcase 3.3: p≥pb
If the price remains above the interval, then the position is still fully in token Y, and therefore
x(p)=0,y(p)=L(pb−pa).
So,
V(p)=W(p)=L(pb−pa),
and consequently
IL(p)=0.
Again, there is no impermanent loss in this regime because the position coincides with a passive holding of token Y.
A final remark is in order for Case 3, especially when token Y is a stablecoin such as USDC. In that setting, a CenturionDEX v3 position opened above the selected range initially consists only of token Y. By contrast, a CenturionDEX v2 position would require liquidity to be supplied in both tokens, so the provider would first need to swap part of the stablecoin balance into token X. As a result, if the price of token X later increases, the CenturionDEX v3 position in Case 3 may remain entirely in stablecoin and therefore exhibit zero impermanent loss relative to its initial deposit, while the corresponding CenturionDEX v2 position will generally move away from the original 50/50 value split and incur impermanent loss relative to simply holding the two deposited assets. For this reason, comparisons between CenturionDEX v2 and CenturionDEX v3 in this regime must be interpreted carefully.