🧬
Head First DeFi: TX & Strategies
  • Decoding the DNA of DeFi Transactions & Strategies
    • From Arbitrage, Sandwich to JIT and Oracle Manipulation
    • Be Prepared To Explore the DeFi World
    • Case Study Format
  • MEV Transaction & Strategy 101
    • A $3.2 Million Profit Arbitrage, the Most Lucrative MEV of 2022
    • Understand Back-Run Arbitrages and Their Signals and Join the MEV Game.
    • Wallchain's MEV Arbitrage Redistribution
    • MEV Blocker, the multi-transaction MEV redistribution system that refunds 90% of builder rewards
    • With NFT arbitrage, someone was snipping your Baby Doge.
    • The Hidden Tax That You Should Know About
    • MEV-Share, Flashbots' MEV Redistribution Solution
  • Don't Let Your Trading Become the Recipe of Someone's Sandwich
    • The Notorious Jaredfromsubway.eth's Sandwich Attack
    • Combined with Flash Loan, This Leveraged Sandwich Launched the Attack with Millions of Volumes
    • Sandwich Targeting Liquidity Providers
    • The Flash-Loan-Enabled Sandwich Attack against Ethereum Foundation
  • Under the Hood of the DeFi Lego
    • What's Really Going on When Processing Liquidity in a Uniswap Pool?
      • Pretend You Are One of the Shareholders of a Bank Branch.
      • Let's Match the Bank Branch to a Uniswap Pool.
      • Adding Liquidity.
      • Removing Liquidity.
      • Conclusion
    • Liquidation: A Good Entry Point to Comprehend Internal Accounting Used by Many DeFi Protocols.
    • A Cross-Chain Arbitrage: The Art of Arbitraging BANANA Cross BSC and Polygon Chains
    • Liquidity Rebalancing: Moving Around $9.4 Million for More Fee Revenues.
    • Rebalancing loan positions utilizing AAVE Flash loan
    • How Does the Grok Token Exploiter Exploit the X Token By Baking His Own Cake And Eating it?
  • Unlocking the Power of Advanced DeFi Transactions and Becoming a DeFi Sleuth
    • Just-in-Time, an MEV Type That Benefits Traders in the Same Trading Venue
    • A Bot Devised Arbitrage Strategies Centered on Autonomous Minting and Burning of Synthetic Tokens
    • The Defect in a Lending Protocol's Oracle Module Was Exploited by a Bot to Generate a $110K Profit
    • A $296K-Profit Arbitrage Done by the Lightning Reflex Bot After the Vyper-Curve Exploit
    • Coffeebabe.eth Utilized Curve's CRV/WETH Pool's Price Deviation for a $5.4 Million Profit Arbitrage.
    • An Attacker Baited MEV Arbitrage Bots and Emptied Their Wallets
    • How Enso Solves 73.5ETH in 116 Steps in One Transaction
Powered by GitBook
On this page
  • Strategy One Liner
  • Big Picture
  • Key Steps
  • Stage 1: Preparing.
  • Stage 2: Getting DAI.
  • Stage 3: Receiving hyUSD by staking derivative tokens.
  • Key Protocols
  • Key Assets
  • Simplified Illustration
  • Step-by-step Decoding
  • Conclusion

Was this helpful?

  1. Unlocking the Power of Advanced DeFi Transactions and Becoming a DeFi Sleuth

How Enso Solves 73.5ETH in 116 Steps in One Transaction

PreviousAn Attacker Baited MEV Arbitrage Bots and Emptied Their Wallets

Last updated 10 months ago

Was this helpful?

Enso is one of the leading solvers in the DeFi industry. During DappCon 2024, its founder, , , which helped Enso raise $4.2 million in funds.

During the presentation, to showcase Enso’s solver service. Today, let’s examine this transaction using way.

Strategy One Liner

Acting as a solver, Enso swaps the user’s 73.5 ETH for 216,661.863807 hyUSD, +276.533490 wcUSDCv3, and 80.362625 sDAI via Curve.fi, Compound, Balancer, and Uniswap.

Big Picture

Key Steps

Stage 1: Preparing.

Enso swaps the user’s ETH for USDC for future uses.

  • Step 4-5: Swap ETH for USDC for future use.

Stage 2: Getting DAI.

Enso swaps varying amounts of ETH through a series of tokens using platforms like Curve.fi, Uniswap, and Balancer, ultimately converting into DAI.

Stage 3: Receiving hyUSD by staking derivative tokens.

Enso uses previous USDC and DAI to get derivative tokens, which are staked to receive the minted hyUSD being sent to the user.

  • Step 98-104: Swap eUSD3CRV-f -> cvxeUSD3CRV-f -> stkcvxeUSD3CRV-f, via Convex.

  • Step 105-109: Swap USDC -> cUSDCv3 -> wcUSDCv3, via Compound.

  • Step 111-113: Deposit sDAI, stkcvxeUSD3CRV-f, and wcUSDCv3 into Reserve for hyUSD.

Key Protocols

  • Enso: acting as the solver for the transaction to swap the user’s ETH for hyUSD. Enso Shortcuts is the DeFi automated strategy and action engine under the hood in the token flow chart.

  • Curve.fi: the intermediate exchange of ETH and other stablecoins.

  • Balancer: the intermediate exchange of stablecoins.

  • Convex: being built on top of Curve.fi. It allows liquidity providers (LPs) and CRV stakers to earn additional interest rewards without locking their tokens directly on Curve.

  • Compound: the DeFi lending protocol. When you deposit USDC assets into the Compound, like in this transaction, you receive cUSDC tokens.

  • Reserve: the DeFi platform that is designed to create stable, asset-backed currencies known as RTokens. hyUSD is an RToken issued through the Reserve Protocol.

Key Assets

ETH, WETH, USDC, frxETH, USDT, crvUSD, mkUSD, crvFRAX, FRAX, DAI, stETH, ELON, PYUSDUSDC, USDe, XAI, eUSD3CRV-f, CRV, CVX, eUSD3CRV-f-gauge, cvxeUSD3CRV-f, stkcvxeUSD3CRV-f, cUSDCv3, wcUSDCv3, hyUSD, sDAI

Here are the simplified explanations of some of the less-known tokens.

  • frxETH: An Ethereum-pegged token used within the Frax Finance ecosystem.

  • crvUSD: A stablecoin backed by a basket of assets, issued on the Curve Finance platform.

  • mkUSD: A stablecoin issued within the MakerDAO ecosystem, typically pegged to the US dollar.

  • crvFRAX: A Curve Finance LP token representing liquidity provided to the FRAX stablecoin pool.

  • stETH: A tokenized representation of staked Ether on the Lido Finance platform, accruing staking rewards.

  • PYUSDUSDC: A liquidity token representing a pool containing PYUSD and USDC stablecoins.

  • PYUSD: PayPal USD (PYUSD) is a stablecoin issued by PayPal, pegged to the US dollar, and designed for use in digital transactions and cryptocurrency trading on various platforms.

  • USDe: A US dollar-pegged stablecoin specific to its issuing platform, Ethena.

  • XAI: A synthetic asset or stablecoin designed to maintain a stable value, often pegged to the US dollar, issued by the Silo Protocol.

  • eUSD3CRV-f: A Curve Finance LP token for a pool containing eUSD and 3CRV stablecoins.

  • CRV: The governance and utility token of Curve Finance, used for voting and liquidity incentives.

  • CVX: The governance token of Convex Finance, used to manage platform parameters and earn rewards.

  • eUSD3CRV-f-gauge: A staking mechanism on Curve Finance for earning rewards by providing liquidity to the eUSD3CRV-f pool.

  • cvxeUSD3CRV-f: A token representing staked eUSD3CRV-f tokens on Convex Finance, earning boosted rewards.

  • stkcvxeUSD3CRV-f: A token representing staked cvxeUSD3CRV-f, earning additional yields on Convex Finance.

  • cUSDCv3: A Compound Finance token representing deposited USDC that earns interest over time.

  • wcUSDCv3: A wrapped version of cUSDCv3, potentially for use on different DeFi protocols or Layer 2 solutions.

  • hyUSD: A hybrid stablecoin issued through the Reserve Protocol, backed by a diversified asset portfolio and generating yield.

  • sDAI: Synthetic DAI, a derivative representing DAI stablecoin, often used in synthetic asset platforms.

Simplified Illustration

The whole process can be illustrated using the 2 diagrams below.

Step-by-step Decoding

The table in the pictures below shows the detailed steps one by one.

  • Stage: The phases mentioned above.

  • Amount: The token amount of the current step.

  • Token: The token of the current step.

  • Transfer from: The “from” protocol project of the current transfer step.

  • Transfer To: The “to” protocol project of the current transfer step.

  • Meaning: The DeFi meaning of the current steps.

Cells with orange backgrounds are the key steps of the transaction.

Conclusion

Using EigenTX bit by bit, we show you how Enso solves 73.5 ETH to over $216K worth of hyUSD in 116 steps. This demonstrates Enso’s capability to engage anyone in various DeFi strategies and simplify and enhance the user experience in DeFI.

Step 9-26: Swap 0.5945826054 ETH -> frxETH -> WETH -> USDT -> crvUSD -> mkUSD -> FRAX -> USDC -> DAI, via

Step 27-46: Swap 0.5945826054 ETH -> stETH -> frxETH -> WETH -> ELON -> USDC -> PYUSDUSDC -> mkUSD -> USDe -> FRAX -> DAI, via and Uniswap.

Step 47-67: Swap 19.40115325 ETH -> stETH -> frxETH -> WETH -> USDC -> XAI -> FRAX -> USDe -> DAI, via and Uniswap.

Step 68-79: Swap 0.5945826054 ETH -> frxETH -> WETH -> USDT -> USDC -> DAI, via , Balancer, and Uniswap.

Step 80-87: Swap 3.339958598 ETH -> frxETH -> WETH -> USDT -> DAI, via and Uniswap.

Step 88-97: Swap DAI -> USDC -> crvFRAX -> eUSD3CRV-f, via .

Step: The steps are in .

Mint or Burn: EigenPhi adds these steps to balance protocols' bookkeeping. Many protocols employ internal bookkeeping to save gas fees. Adding Mint or Burn to the chart would make it easier to grasp the internal mechanisms, like .

Curve.fi
Curve.fi
Curve.fi
Curve.fi
Curve.fi
Curve.fi
the EigenTx token flow chart
Uniswap’s adding and removing liquidity
Connor Howe
announced the Enso Intent Engine
Connor illustrated a complicated transaction
the Head First DeFi
https://eigenphi.io/mev/eigentx/0xabf4df56c5063e97a24a96a689c40f144bc8c87604703d7f60b3609f8da74978