From c7b34227c22e2d025c4876b305e0e0b9c9fd69d9 Mon Sep 17 00:00:00 2001 From: "dr. mia von steinkirch, phd" <1130416+mvonsteinkirch@users.noreply.github.com> Date: Tue, 14 Feb 2023 07:55:47 -0800 Subject: [PATCH] Create tricks.md --- .../protocols/uniswap/uniswap-v3/tricks.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 MEV_and_trading/protocols/uniswap/uniswap-v3/tricks.md diff --git a/MEV_and_trading/protocols/uniswap/uniswap-v3/tricks.md b/MEV_and_trading/protocols/uniswap/uniswap-v3/tricks.md new file mode 100644 index 0000000..b81fe49 --- /dev/null +++ b/MEV_and_trading/protocols/uniswap/uniswap-v3/tricks.md @@ -0,0 +1,16 @@ +## tricks + +
+ +### example cex + dex + +
+ +1. consider a JIT LP that has ETH and USDC both in a wallet and in a CEX. +2. when the LP observes a large ETH -> USDC swap in the mempool, they deploy a LP position on Uniswap, and at the same time submit an ETH buy order on the CEX. +3. after both trades, the LP has the same total amount of ETH and USDC as before. +4. assuming that the following holds, the LP are also profitable: + +``` + fees_DEX + price_impact_DEX > fees_CEX + price_impact_CEX +```