Update just-in-time.md

This commit is contained in:
mia von steinkirch, phd 2022-12-21 18:29:15 -08:00 committed by GitHub
parent d80ac0814a
commit ba5f80e7cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,33 +4,30 @@
### tl; dr
* uniswap v3 allows LPs to provide concentrated liquidity within smaller price ranges.
* uniswap v3 allows LPs to provide concentrated liquidity within smaller price ranges.
* jit liquidity is a form of liquidity provision where an LP mints and burns a concentrated position immediately before and after a swap.
* because provision has significant costs, it's usually only used against very large swaps
##### on mev
* jit liquidity is provided by MEV searchers who scan the mempool for substantial pending trades, adding and withdrawing an LP position within the same block. sophisticated searchers can add and remove concentrated liquidity on sandwich trades.
* using uniswap v3s concentrated liquidity, the positions range can be defined to match the trade in order to poach an amplified portion of the trading fees.
* hit liquidity avoids exposure to impermanent loss by its very nature since it is added and removed within the same block.
* jit lps face competition in mev auction market - the price improvement provided by jit liquidity should be capped by twice the fee rate of the pool that jit occurs in.
* because provision has significant costs, it's usually only used against very large swaps.
<br>
##### impermanent loss (il)
----
### impermanent loss (il)
* uniswap lps profit a fixed trading fee associated with each liquidity pool, typically 0.01%, 0.05%, or 0.3% of the value of each swap
* uniswap lps profit a fixed trading fee associated with each liquidity pool, typically 0.01%, 0.05%, or 0.3% of the value of each swap.
* when the price of the two assets begins to diverge, lps experience il associated with that divergence, as lps are continuously selling the appreciating asset of the pair for more of the depreciating asset.
* lps are in profit overall if the trading fees outweigh the il they are subject (either v2 or v3)
* in uniswap v3, lps may capture more tradng fees whenever their liquidity is in range, however, if the price moves permanently out of the range of their liquidity, their il aggravates.
* additionally, uniswap v3 comes with just-in-time (jit) liquidity, which reduces the fee accrual of normal lp.
##### jit on mev
* jit liquidity is provided by MEV searchers who scan the mempool for substantial pending trades, adding and withdrawing an LP position within the same block. sophisticated searchers can add and remove concentrated liquidity on sandwich trades.
* using uniswap v3s concentrated liquidity, the positions range can be defined to match the trade in order to poach an amplified portion of the trading fees.
* jit liquidity avoids exposure to impermanent loss by its very nature since it is added and removed within the same block.
* jit lps face competition in mev auction market - the price improvement provided by jit liquidity should be capped by twice the fee rate of the pool that jit occurs in.
<br>
----