├── .github └── images │ ├── coursebadge.png │ └── poweredbycyfrinbluehigher.png ├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md ├── aave-v3.md ├── curve-v1.md ├── curve-v2.md ├── excalidraw ├── aave-v3.excalidraw ├── amm │ ├── csamm_example.excalidraw │ ├── csamm_example.png │ ├── curve-v1 │ │ ├── curve-v1-contract.excalidraw │ │ ├── curve-v1-contract.png │ │ ├── curve-v1-eq.excalidraw │ │ ├── curve-v1-eq.png │ │ ├── curve-v1-newton.excalidraw │ │ └── curve-v1-newton.png │ ├── curve-v2 │ │ ├── curve-v2-contract.excalidraw │ │ ├── curve-v2-contract.png │ │ ├── curve-v2-ema-irregular-interval.excalidraw │ │ ├── curve-v2-ema-irregular-interval.png │ │ ├── curve-v2-ema-regular-interval.excalidraw │ │ ├── curve-v2-ema-regular-interval.png │ │ ├── curve-v2-price-scale-amm-eq.excalidraw │ │ ├── curve-v2-price-scale-amm-eq.png │ │ ├── curve-v2-price-scale-repeg.excalidraw │ │ ├── curve-v2-price-scale-repeg.png │ │ ├── curve-v2-price-scale.excalidraw │ │ └── curve-v2-price-scale.png │ ├── pool_shares.excalidraw │ ├── pool_shares.png │ ├── slippage.excalidraw │ ├── slippage.png │ ├── uniswap-v2 │ │ ├── uniswap_v2.excalidraw │ │ ├── uniswap_v2.png │ │ ├── uniswap_v2_arb.excalidraw │ │ ├── uniswap_v2_arb.png │ │ ├── uniswap_v2_arb_optimal_amount_in.excalidraw │ │ ├── uniswap_v2_arb_optimal_amount_in.png │ │ ├── uniswap_v2_math.excalidraw │ │ ├── uniswap_v2_math.png │ │ ├── uniswap_v2_spot_price_oracle.excalidraw │ │ ├── uniswap_v2_spot_price_oracle.png │ │ ├── uniswap_v2_twap.excalidraw │ │ └── uniswap_v2_twap.png │ ├── uniswap-v3 │ │ ├── uniswap-v2-v3-diff.excalidraw │ │ ├── uniswap-v2-v3-diff.png │ │ ├── uniswap-v3-calc-fee.excalidraw │ │ ├── uniswap-v3-calc-fee.png │ │ ├── uniswap-v3-contracts.excalidraw │ │ ├── uniswap-v3-contracts.png │ │ ├── uniswap-v3-curve-real-reserves.excalidraw │ │ ├── uniswap-v3-curve-real-reserves.png │ │ ├── uniswap-v3-delta-price.excalidraw │ │ ├── uniswap-v3-delta-price.png │ │ ├── uniswap-v3-factory.excalidraw │ │ ├── uniswap-v3-factory.png │ │ ├── uniswap-v3-fee-growth-above.excalidraw │ │ ├── uniswap-v3-fee-growth-above.png │ │ ├── uniswap-v3-fee-growth-below.excalidraw │ │ ├── uniswap-v3-fee-growth-below.png │ │ ├── uniswap-v3-fee-growth-inside.excalidraw │ │ ├── uniswap-v3-fee-growth-inside.png │ │ ├── uniswap-v3-fee-growth-outside.excalidraw │ │ ├── uniswap-v3-fee-growth-outside.png │ │ ├── uniswap-v3-fee-growth.excalidraw │ │ ├── uniswap-v3-fee-growth.png │ │ ├── uniswap-v3-fee-position.excalidraw │ │ ├── uniswap-v3-fee-position.png │ │ ├── uniswap-v3-intro.excalidraw │ │ ├── uniswap-v3-intro.png │ │ ├── uniswap-v3-jit.excalidraw │ │ ├── uniswap-v3-jit.png │ │ ├── uniswap-v3-liquidity-delta.excalidraw │ │ ├── uniswap-v3-liquidity-delta.png │ │ ├── uniswap-v3-liquidity-net.excalidraw │ │ ├── uniswap-v3-liquidity-net.png │ │ ├── uniswap-v3-liquidity.excalidraw │ │ ├── uniswap-v3-liquidity.png │ │ ├── uniswap-v3-next-tick.excalidraw │ │ ├── uniswap-v3-next-tick.png │ │ ├── uniswap-v3-pool-call-trace.excalidraw │ │ ├── uniswap-v3-pool-call-trace.png │ │ ├── uniswap-v3-position-manager.excalidraw │ │ ├── uniswap-v3-position-manager.png │ │ ├── uniswap-v3-price-tick.excalidraw │ │ ├── uniswap-v3-price-tick.png │ │ ├── uniswap-v3-swap-algo.excalidraw │ │ ├── uniswap-v3-swap-algo.png │ │ ├── uniswap-v3-swap-contract-calls.excalidraw │ │ ├── uniswap-v3-swap-contract-calls.png │ │ ├── uniswap-v3-swap-fee.excalidraw │ │ ├── uniswap-v3-swap-fee.png │ │ ├── uniswap-v3-tick-bitmap.excalidraw │ │ ├── uniswap-v3-tick-bitmap.png │ │ ├── uniswap-v3-twap-x-y.excalidraw │ │ ├── uniswap-v3-twap-x-y.png │ │ ├── uniswap-v3-twap.excalidraw │ │ ├── uniswap-v3-twap.png │ │ ├── uniswap-v3-xy-amounts.excalidraw │ │ ├── uniswap-v3-xy-amounts.png │ │ ├── uniswap-v3-xy-equations.excalidraw │ │ └── uniswap-v3-xy-equations.png │ ├── what_is_amm.excalidraw │ └── what_is_amm.png ├── mev.excalidraw └── mev.png ├── foundry ├── .gitignore ├── foundry.toml ├── lib │ └── forge-std │ │ ├── .gitattributes │ │ ├── .github │ │ └── workflows │ │ │ ├── ci.yml │ │ │ └── sync.yml │ │ ├── .gitignore │ │ ├── LICENSE-APACHE │ │ ├── LICENSE-MIT │ │ ├── README.md │ │ ├── foundry.toml │ │ ├── package.json │ │ ├── scripts │ │ └── vm.py │ │ ├── src │ │ ├── Base.sol │ │ ├── Script.sol │ │ ├── StdAssertions.sol │ │ ├── StdChains.sol │ │ ├── StdCheats.sol │ │ ├── StdError.sol │ │ ├── StdInvariant.sol │ │ ├── StdJson.sol │ │ ├── StdMath.sol │ │ ├── StdStorage.sol │ │ ├── StdStyle.sol │ │ ├── StdToml.sol │ │ ├── StdUtils.sol │ │ ├── Test.sol │ │ ├── Vm.sol │ │ ├── console.sol │ │ ├── console2.sol │ │ ├── interfaces │ │ │ ├── IERC1155.sol │ │ │ ├── IERC165.sol │ │ │ ├── IERC20.sol │ │ │ ├── IERC4626.sol │ │ │ ├── IERC721.sol │ │ │ └── IMulticall3.sol │ │ ├── mocks │ │ │ ├── MockERC20.sol │ │ │ └── MockERC721.sol │ │ └── safeconsole.sol │ │ └── test │ │ ├── StdAssertions.t.sol │ │ ├── StdChains.t.sol │ │ ├── StdCheats.t.sol │ │ ├── StdError.t.sol │ │ ├── StdJson.t.sol │ │ ├── StdMath.t.sol │ │ ├── StdStorage.t.sol │ │ ├── StdStyle.t.sol │ │ ├── StdToml.t.sol │ │ ├── StdUtils.t.sol │ │ ├── Vm.t.sol │ │ ├── compilation │ │ ├── CompilationScript.sol │ │ ├── CompilationScriptBase.sol │ │ ├── CompilationTest.sol │ │ └── CompilationTestBase.sol │ │ ├── fixtures │ │ ├── broadcast.log.json │ │ ├── test.json │ │ └── test.toml │ │ └── mocks │ │ ├── MockERC20.t.sol │ │ └── MockERC721.t.sol ├── src │ ├── Constants.sol │ ├── ERC20.sol │ ├── dai │ │ └── DaiProxy.sol │ ├── interfaces │ │ ├── IERC20.sol │ │ ├── IERC721.sol │ │ ├── IWETH.sol │ │ ├── curve │ │ │ ├── IStableSwap3Pool.sol │ │ │ └── ITriCrypto.sol │ │ ├── uniswap-v2 │ │ │ ├── IUniswapV2Factory.sol │ │ │ ├── IUniswapV2Pair.sol │ │ │ ├── IUniswapV2Router01.sol │ │ │ └── IUniswapV2Router02.sol │ │ └── uniswap-v3 │ │ │ ├── INonfungiblePositionManager.sol │ │ │ ├── ISwapRouter.sol │ │ │ ├── IUniswapV3Factory.sol │ │ │ ├── IUniswapV3FlashCallback.sol │ │ │ ├── IUniswapV3MintCallback.sol │ │ │ ├── IUniswapV3Pool.sol │ │ │ └── IUniswapV3SwapCallback.sol │ ├── uniswap-v2 │ │ ├── FixedPoint.sol │ │ └── FullMath.sol │ └── uniswap-v3 │ │ ├── FullMath.sol │ │ └── TickMath.sol └── test │ ├── aave-v3 │ └── AaveV3.test.sol │ ├── curve-v1 │ ├── exercises │ │ ├── CurveV1AddLiquidity.test.sol │ │ ├── CurveV1RemoveLiquidity.test.sol │ │ └── CurveV1Swap.test.sol │ └── solutions │ │ ├── CurveV1AddLiquidity.test.sol │ │ ├── CurveV1RemoveLiquidity.test.sol │ │ └── CurveV1Swap.test.sol │ ├── curve-v2 │ ├── exercises │ │ ├── CurveV2AddLiquidity.test.sol │ │ ├── CurveV2PriceScale.test.sol │ │ ├── CurveV2RemoveLiquidity.test.sol │ │ └── CurveV2Swap.test.sol │ └── solutions │ │ ├── CurveV2AddLiquidity.test.sol │ │ ├── CurveV2PriceScale.test.sol │ │ ├── CurveV2RemoveLiquidity.test.sol │ │ └── CurveV2Swap.test.sol │ ├── dai │ └── DaiProxy.test.sol │ ├── uniswap-v2 │ ├── UniswapV2SwapAmounts.test.sol │ ├── exercises │ │ ├── UniswapV2Arb1.sol │ │ ├── UniswapV2Arb1.test.sol │ │ ├── UniswapV2Arb2.sol │ │ ├── UniswapV2Arb2.test.sol │ │ ├── UniswapV2Factory.test.sol │ │ ├── UniswapV2FlashSwap.sol │ │ ├── UniswapV2FlashSwap.test.sol │ │ ├── UniswapV2Liquidity.test.sol │ │ ├── UniswapV2Swap.test.sol │ │ ├── UniswapV2Twap.sol │ │ └── UniswapV2Twap.test.sol │ └── solutions │ │ ├── UniswapV2Arb1.sol │ │ ├── UniswapV2Arb1.test.sol │ │ ├── UniswapV2Arb2.sol │ │ ├── UniswapV2Arb2.test.sol │ │ ├── UniswapV2Factory.test.sol │ │ ├── UniswapV2FlashSwap.sol │ │ ├── UniswapV2FlashSwap.test.sol │ │ ├── UniswapV2Liquidity.test.sol │ │ ├── UniswapV2Swap.test.sol │ │ ├── UniswapV2Twap.sol │ │ └── UniswapV2Twap.test.sol │ └── uniswap-v3 │ ├── exercises │ ├── UniswapV3Factory.test.sol │ ├── UniswapV3Flash.sol │ ├── UniswapV3Flash.test.sol │ ├── UniswapV3Liquidity.test.sol │ ├── UniswapV3SpotPrice.test.sol │ ├── UniswapV3Swap.test.sol │ ├── UniswapV3Twap.sol │ └── UniswapV3Twap.test.sol │ └── solutions │ ├── UniswapV3Factory.test.sol │ ├── UniswapV3Flash.sol │ ├── UniswapV3Flash.test.sol │ ├── UniswapV3Liquidity.test.sol │ ├── UniswapV3SpotPrice.test.sol │ ├── UniswapV3Swap.test.sol │ ├── UniswapV3Twap.sol │ └── UniswapV3Twap.test.sol ├── img ├── curve.png ├── dai.png └── uniswap.png ├── notebook ├── aave_supply.ipynb ├── amm_dy_dx.ipynb ├── curve_v1_equations.ipynb ├── curve_v1_imbalance_fee.ipynb ├── curve_v1_newton.ipynb ├── curve_v2.ipynb ├── curve_v2_ema.ipynb ├── curve_v2_swap_price_scale.ipynb ├── hex_addr.ipynb ├── mev_sandwich.ipynb ├── uniswap_v2_spot_oracle.ipynb ├── uniswap_v2_twap.ipynb ├── uniswap_v3_spot_price.ipynb ├── uniswap_v3_swap.ipynb ├── uniswap_v3_tick_bitmap.ipynb └── uniswap_v3_twap.ipynb ├── notes └── uni-v2 │ ├── v2-core │ ├── .gitattributes │ ├── .gitignore │ ├── .mocharc.json │ ├── .prettierrc │ ├── .waffle.json │ ├── CITATION.cff │ ├── LICENSE │ ├── README.md │ ├── contracts │ │ ├── UniswapV2ERC20.sol │ │ ├── UniswapV2Factory.sol │ │ ├── UniswapV2Pair.sol │ │ ├── interfaces │ │ │ ├── IERC20.sol │ │ │ ├── IUniswapV2Callee.sol │ │ │ ├── IUniswapV2ERC20.sol │ │ │ ├── IUniswapV2Factory.sol │ │ │ └── IUniswapV2Pair.sol │ │ ├── libraries │ │ │ ├── Math.sol │ │ │ ├── SafeMath.sol │ │ │ └── UQ112x112.sol │ │ └── test │ │ │ └── ERC20.sol │ ├── package.json │ ├── test │ │ ├── UniswapV2ERC20.spec.ts │ │ ├── UniswapV2Factory.spec.ts │ │ ├── UniswapV2Pair.spec.ts │ │ └── shared │ │ │ ├── fixtures.ts │ │ │ └── utilities.ts │ ├── tsconfig.json │ └── yarn.lock │ └── v2-periphery │ ├── .gitattributes │ ├── .gitignore │ ├── .mocharc.json │ ├── .prettierrc │ ├── .waffle.json │ ├── .yarnrc │ ├── LICENSE │ ├── README.md │ ├── contracts │ ├── UniswapV2Migrator.sol │ ├── UniswapV2Router01.sol │ ├── UniswapV2Router02.sol │ ├── examples │ │ ├── ExampleComputeLiquidityValue.sol │ │ ├── ExampleFlashSwap.sol │ │ ├── ExampleOracleSimple.sol │ │ ├── ExampleSlidingWindowOracle.sol │ │ ├── ExampleSwapToPrice.sol │ │ └── README.md │ ├── interfaces │ │ ├── IERC20.sol │ │ ├── IUniswapV2Migrator.sol │ │ ├── IUniswapV2Router01.sol │ │ ├── IUniswapV2Router02.sol │ │ ├── IWETH.sol │ │ └── V1 │ │ │ ├── IUniswapV1Exchange.sol │ │ │ └── IUniswapV1Factory.sol │ ├── libraries │ │ ├── SafeMath.sol │ │ ├── UniswapV2Library.sol │ │ ├── UniswapV2LiquidityMathLibrary.sol │ │ └── UniswapV2OracleLibrary.sol │ └── test │ │ ├── DeflatingERC20.sol │ │ ├── ERC20.sol │ │ ├── RouterEventEmitter.sol │ │ └── WETH9.sol │ ├── package.json │ ├── test │ ├── ExampleComputeLiquidityValue.spec.ts │ ├── ExampleFlashSwap.spec.ts │ ├── ExampleOracleSimple.spec.ts │ ├── ExampleSlidingWindowOracle.spec.ts │ ├── ExampleSwapToPrice.spec.ts │ ├── UniswapV2Migrator.spec.ts │ ├── UniswapV2Router01.spec.ts │ ├── UniswapV2Router02.spec.ts │ └── shared │ │ ├── fixtures.ts │ │ └── utilities.ts │ ├── tsconfig.json │ └── yarn.lock ├── rocket-pool.md ├── todo.md ├── topics ├── amm │ ├── curve-v1 │ │ ├── StableSwap3Pool.vy │ │ └── comparisons.md │ ├── curve-v2 │ │ ├── CurveCryptoViews3Optimized.vy │ │ ├── CurveTricryptoMathOptimized.vy │ │ └── CurveTricryptoOptimizedWETH.vy │ └── intro │ │ ├── amm_equations.md │ │ ├── amm_order_book.md │ │ └── what_is_amm.md └── mev │ ├── FlashbotsTest.sol │ └── README.md ├── uniswap-v2.md ├── uniswap-v3.md ├── utils ├── flat.js ├── rename.js └── video_durations.py └── whitepapers ├── README.md ├── aave ├── aave-gho.pdf ├── aave-v1.pdf ├── aave-v2.pdf └── aave-v3.pdf ├── curve ├── curve-cryptopools.pdf └── curve-stableswap.pdf └── uniswap ├── uniswap-v2.pdf └── uniswap-v3.pdf /.github/images/coursebadge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/.github/images/coursebadge.png -------------------------------------------------------------------------------- /.github/images/poweredbycyfrinbluehigher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/.github/images/poweredbycyfrinbluehigher.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/README.md -------------------------------------------------------------------------------- /aave-v3.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/aave-v3.md -------------------------------------------------------------------------------- /curve-v1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/curve-v1.md -------------------------------------------------------------------------------- /curve-v2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/curve-v2.md -------------------------------------------------------------------------------- /excalidraw/aave-v3.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/aave-v3.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/csamm_example.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/csamm_example.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/csamm_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/csamm_example.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v1/curve-v1-contract.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v1/curve-v1-contract.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v1/curve-v1-contract.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v1/curve-v1-contract.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v1/curve-v1-eq.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v1/curve-v1-eq.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v1/curve-v1-eq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v1/curve-v1-eq.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v1/curve-v1-newton.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v1/curve-v1-newton.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v1/curve-v1-newton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v1/curve-v1-newton.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-contract.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-contract.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-contract.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-contract.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-ema-irregular-interval.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-ema-irregular-interval.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-ema-irregular-interval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-ema-irregular-interval.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-ema-regular-interval.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-ema-regular-interval.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-ema-regular-interval.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-ema-regular-interval.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-price-scale-amm-eq.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-price-scale-amm-eq.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-price-scale-amm-eq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-price-scale-amm-eq.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-price-scale-repeg.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-price-scale-repeg.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-price-scale-repeg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-price-scale-repeg.png -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-price-scale.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-price-scale.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/curve-v2/curve-v2-price-scale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/curve-v2/curve-v2-price-scale.png -------------------------------------------------------------------------------- /excalidraw/amm/pool_shares.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/pool_shares.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/pool_shares.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/pool_shares.png -------------------------------------------------------------------------------- /excalidraw/amm/slippage.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/slippage.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/slippage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/slippage.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_arb.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_arb.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_arb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_arb.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_arb_optimal_amount_in.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_arb_optimal_amount_in.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_arb_optimal_amount_in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_arb_optimal_amount_in.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_math.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_math.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_math.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_math.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_spot_price_oracle.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_spot_price_oracle.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_spot_price_oracle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_spot_price_oracle.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_twap.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_twap.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v2/uniswap_v2_twap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v2/uniswap_v2_twap.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v2-v3-diff.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v2-v3-diff.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v2-v3-diff.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v2-v3-diff.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-calc-fee.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-calc-fee.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-calc-fee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-calc-fee.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-contracts.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-contracts.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-contracts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-contracts.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-curve-real-reserves.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-curve-real-reserves.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-curve-real-reserves.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-curve-real-reserves.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-delta-price.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-delta-price.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-delta-price.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-delta-price.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-factory.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-factory.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-factory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-factory.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-above.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-above.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-above.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-above.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-below.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-below.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-below.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-below.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-inside.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-inside.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-inside.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-inside.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-outside.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-outside.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-outside.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth-outside.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-growth.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-position.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-position.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-fee-position.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-fee-position.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-intro.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-intro.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-intro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-intro.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-jit.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-jit.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-jit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-jit.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-delta.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-delta.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-delta.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-delta.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-net.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-net.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-net.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-liquidity-net.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-liquidity.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-liquidity.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-liquidity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-liquidity.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-next-tick.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-next-tick.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-next-tick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-next-tick.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-pool-call-trace.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-pool-call-trace.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-pool-call-trace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-pool-call-trace.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-position-manager.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-position-manager.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-position-manager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-position-manager.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-price-tick.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-price-tick.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-price-tick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-price-tick.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-swap-algo.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-swap-algo.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-swap-algo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-swap-algo.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-swap-contract-calls.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-swap-contract-calls.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-swap-contract-calls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-swap-contract-calls.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-swap-fee.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-swap-fee.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-swap-fee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-swap-fee.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-tick-bitmap.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-tick-bitmap.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-tick-bitmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-tick-bitmap.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-twap-x-y.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-twap-x-y.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-twap-x-y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-twap-x-y.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-twap.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-twap.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-twap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-twap.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-xy-amounts.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-xy-amounts.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-xy-amounts.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-xy-amounts.png -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-xy-equations.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-xy-equations.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/uniswap-v3/uniswap-v3-xy-equations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/uniswap-v3/uniswap-v3-xy-equations.png -------------------------------------------------------------------------------- /excalidraw/amm/what_is_amm.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/what_is_amm.excalidraw -------------------------------------------------------------------------------- /excalidraw/amm/what_is_amm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/amm/what_is_amm.png -------------------------------------------------------------------------------- /excalidraw/mev.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/mev.excalidraw -------------------------------------------------------------------------------- /excalidraw/mev.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/excalidraw/mev.png -------------------------------------------------------------------------------- /foundry/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/.gitignore -------------------------------------------------------------------------------- /foundry/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/foundry.toml -------------------------------------------------------------------------------- /foundry/lib/forge-std/.gitattributes: -------------------------------------------------------------------------------- 1 | src/Vm.sol linguist-generated 2 | -------------------------------------------------------------------------------- /foundry/lib/forge-std/.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/.github/workflows/ci.yml -------------------------------------------------------------------------------- /foundry/lib/forge-std/.github/workflows/sync.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/.github/workflows/sync.yml -------------------------------------------------------------------------------- /foundry/lib/forge-std/.gitignore: -------------------------------------------------------------------------------- 1 | cache/ 2 | out/ 3 | .vscode 4 | .idea 5 | -------------------------------------------------------------------------------- /foundry/lib/forge-std/LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/LICENSE-APACHE -------------------------------------------------------------------------------- /foundry/lib/forge-std/LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/LICENSE-MIT -------------------------------------------------------------------------------- /foundry/lib/forge-std/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/README.md -------------------------------------------------------------------------------- /foundry/lib/forge-std/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/foundry.toml -------------------------------------------------------------------------------- /foundry/lib/forge-std/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/package.json -------------------------------------------------------------------------------- /foundry/lib/forge-std/scripts/vm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/scripts/vm.py -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/Base.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/Base.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/Script.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/Script.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdAssertions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdAssertions.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdChains.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdChains.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdCheats.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdCheats.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdError.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdError.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdInvariant.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdInvariant.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdJson.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdJson.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdMath.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdStorage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdStorage.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdStyle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdStyle.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdToml.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdToml.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/StdUtils.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/StdUtils.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/Test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/Test.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/Vm.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/Vm.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/console.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/console.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/console2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/console2.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/interfaces/IERC1155.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/interfaces/IERC1155.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/interfaces/IERC165.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/interfaces/IERC165.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/interfaces/IERC20.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/interfaces/IERC4626.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/interfaces/IERC4626.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/interfaces/IERC721.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/interfaces/IERC721.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/interfaces/IMulticall3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/interfaces/IMulticall3.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/mocks/MockERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/mocks/MockERC20.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/mocks/MockERC721.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/mocks/MockERC721.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/src/safeconsole.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/src/safeconsole.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdAssertions.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdAssertions.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdChains.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdChains.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdCheats.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdCheats.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdError.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdError.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdJson.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdJson.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdMath.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdMath.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdStorage.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdStorage.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdStyle.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdStyle.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdToml.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdToml.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/StdUtils.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/StdUtils.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/Vm.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/Vm.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/compilation/CompilationScript.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/compilation/CompilationScript.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/compilation/CompilationScriptBase.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/compilation/CompilationScriptBase.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/compilation/CompilationTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/compilation/CompilationTest.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/compilation/CompilationTestBase.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/compilation/CompilationTestBase.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/fixtures/broadcast.log.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/fixtures/broadcast.log.json -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/fixtures/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/fixtures/test.json -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/fixtures/test.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/fixtures/test.toml -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/mocks/MockERC20.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/mocks/MockERC20.t.sol -------------------------------------------------------------------------------- /foundry/lib/forge-std/test/mocks/MockERC721.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/lib/forge-std/test/mocks/MockERC721.t.sol -------------------------------------------------------------------------------- /foundry/src/Constants.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/Constants.sol -------------------------------------------------------------------------------- /foundry/src/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/ERC20.sol -------------------------------------------------------------------------------- /foundry/src/dai/DaiProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/dai/DaiProxy.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/IERC20.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/IERC721.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/IERC721.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/IWETH.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/curve/IStableSwap3Pool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/curve/IStableSwap3Pool.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/curve/ITriCrypto.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/curve/ITriCrypto.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v2/IUniswapV2Factory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v2/IUniswapV2Factory.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v2/IUniswapV2Pair.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v2/IUniswapV2Pair.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v2/IUniswapV2Router01.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v2/IUniswapV2Router01.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v2/IUniswapV2Router02.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v2/IUniswapV2Router02.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v3/INonfungiblePositionManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v3/INonfungiblePositionManager.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v3/ISwapRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v3/ISwapRouter.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v3/IUniswapV3Factory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v3/IUniswapV3Factory.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v3/IUniswapV3FlashCallback.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v3/IUniswapV3FlashCallback.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v3/IUniswapV3MintCallback.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v3/IUniswapV3MintCallback.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v3/IUniswapV3Pool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v3/IUniswapV3Pool.sol -------------------------------------------------------------------------------- /foundry/src/interfaces/uniswap-v3/IUniswapV3SwapCallback.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/interfaces/uniswap-v3/IUniswapV3SwapCallback.sol -------------------------------------------------------------------------------- /foundry/src/uniswap-v2/FixedPoint.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/uniswap-v2/FixedPoint.sol -------------------------------------------------------------------------------- /foundry/src/uniswap-v2/FullMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/uniswap-v2/FullMath.sol -------------------------------------------------------------------------------- /foundry/src/uniswap-v3/FullMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/uniswap-v3/FullMath.sol -------------------------------------------------------------------------------- /foundry/src/uniswap-v3/TickMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/src/uniswap-v3/TickMath.sol -------------------------------------------------------------------------------- /foundry/test/aave-v3/AaveV3.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/aave-v3/AaveV3.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v1/exercises/CurveV1AddLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v1/exercises/CurveV1AddLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v1/exercises/CurveV1RemoveLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v1/exercises/CurveV1RemoveLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v1/exercises/CurveV1Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v1/exercises/CurveV1Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v1/solutions/CurveV1AddLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v1/solutions/CurveV1AddLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v1/solutions/CurveV1RemoveLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v1/solutions/CurveV1RemoveLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v1/solutions/CurveV1Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v1/solutions/CurveV1Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/exercises/CurveV2AddLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/exercises/CurveV2AddLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/exercises/CurveV2PriceScale.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/exercises/CurveV2PriceScale.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/exercises/CurveV2RemoveLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/exercises/CurveV2RemoveLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/exercises/CurveV2Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/exercises/CurveV2Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/solutions/CurveV2AddLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/solutions/CurveV2AddLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/solutions/CurveV2PriceScale.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/solutions/CurveV2PriceScale.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/solutions/CurveV2RemoveLiquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/solutions/CurveV2RemoveLiquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/curve-v2/solutions/CurveV2Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/curve-v2/solutions/CurveV2Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/dai/DaiProxy.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/dai/DaiProxy.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/UniswapV2SwapAmounts.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/UniswapV2SwapAmounts.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Arb1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Arb1.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Arb1.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Arb1.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Arb2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Arb2.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Arb2.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Arb2.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Factory.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Factory.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2FlashSwap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2FlashSwap.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2FlashSwap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2FlashSwap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Liquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Liquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Twap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Twap.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/exercises/UniswapV2Twap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/exercises/UniswapV2Twap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Arb1.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Arb1.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Arb1.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Arb1.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Arb2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Arb2.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Arb2.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Arb2.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Factory.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Factory.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2FlashSwap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2FlashSwap.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2FlashSwap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2FlashSwap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Liquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Liquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Twap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Twap.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v2/solutions/UniswapV2Twap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v2/solutions/UniswapV2Twap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3Factory.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3Factory.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3Flash.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3Flash.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3Flash.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3Flash.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3Liquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3Liquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3SpotPrice.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3SpotPrice.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3Twap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3Twap.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/exercises/UniswapV3Twap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/exercises/UniswapV3Twap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3Factory.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3Factory.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3Flash.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3Flash.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3Flash.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3Flash.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3Liquidity.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3Liquidity.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3SpotPrice.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3SpotPrice.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3Swap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3Swap.test.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3Twap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3Twap.sol -------------------------------------------------------------------------------- /foundry/test/uniswap-v3/solutions/UniswapV3Twap.test.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/foundry/test/uniswap-v3/solutions/UniswapV3Twap.test.sol -------------------------------------------------------------------------------- /img/curve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/img/curve.png -------------------------------------------------------------------------------- /img/dai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/img/dai.png -------------------------------------------------------------------------------- /img/uniswap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/img/uniswap.png -------------------------------------------------------------------------------- /notebook/aave_supply.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/aave_supply.ipynb -------------------------------------------------------------------------------- /notebook/amm_dy_dx.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/amm_dy_dx.ipynb -------------------------------------------------------------------------------- /notebook/curve_v1_equations.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/curve_v1_equations.ipynb -------------------------------------------------------------------------------- /notebook/curve_v1_imbalance_fee.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/curve_v1_imbalance_fee.ipynb -------------------------------------------------------------------------------- /notebook/curve_v1_newton.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/curve_v1_newton.ipynb -------------------------------------------------------------------------------- /notebook/curve_v2.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/curve_v2.ipynb -------------------------------------------------------------------------------- /notebook/curve_v2_ema.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/curve_v2_ema.ipynb -------------------------------------------------------------------------------- /notebook/curve_v2_swap_price_scale.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/curve_v2_swap_price_scale.ipynb -------------------------------------------------------------------------------- /notebook/hex_addr.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/hex_addr.ipynb -------------------------------------------------------------------------------- /notebook/mev_sandwich.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/mev_sandwich.ipynb -------------------------------------------------------------------------------- /notebook/uniswap_v2_spot_oracle.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/uniswap_v2_spot_oracle.ipynb -------------------------------------------------------------------------------- /notebook/uniswap_v2_twap.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/uniswap_v2_twap.ipynb -------------------------------------------------------------------------------- /notebook/uniswap_v3_spot_price.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/uniswap_v3_spot_price.ipynb -------------------------------------------------------------------------------- /notebook/uniswap_v3_swap.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/uniswap_v3_swap.ipynb -------------------------------------------------------------------------------- /notebook/uniswap_v3_tick_bitmap.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/uniswap_v3_tick_bitmap.ipynb -------------------------------------------------------------------------------- /notebook/uniswap_v3_twap.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notebook/uniswap_v3_twap.ipynb -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | build/ 3 | -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/.mocharc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/.mocharc.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/.prettierrc -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/.waffle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/.waffle.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/CITATION.cff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/CITATION.cff -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/LICENSE -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/README.md -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/UniswapV2ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/UniswapV2ERC20.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/UniswapV2Factory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/UniswapV2Factory.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/UniswapV2Pair.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/UniswapV2Pair.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2Callee.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2Callee.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2ERC20.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2Factory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2Factory.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2Pair.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/interfaces/IUniswapV2Pair.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/libraries/Math.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/libraries/Math.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/libraries/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/libraries/SafeMath.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/libraries/UQ112x112.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/libraries/UQ112x112.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/contracts/test/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/contracts/test/ERC20.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/package.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/test/UniswapV2ERC20.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/test/UniswapV2ERC20.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/test/UniswapV2Factory.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/test/UniswapV2Factory.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/test/UniswapV2Pair.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/test/UniswapV2Pair.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/test/shared/fixtures.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/test/shared/fixtures.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/test/shared/utilities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/test/shared/utilities.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/tsconfig.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-core/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-core/yarn.lock -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/.mocharc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/.mocharc.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/.prettierrc -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/.waffle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/.waffle.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/.yarnrc: -------------------------------------------------------------------------------- 1 | ignore-scripts true 2 | -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/LICENSE -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/README.md -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/UniswapV2Migrator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/UniswapV2Migrator.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/UniswapV2Router01.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/UniswapV2Router01.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/UniswapV2Router02.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/UniswapV2Router02.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/examples/ExampleComputeLiquidityValue.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/examples/ExampleComputeLiquidityValue.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/examples/ExampleFlashSwap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/examples/ExampleFlashSwap.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/examples/ExampleOracleSimple.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/examples/ExampleOracleSimple.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/examples/ExampleSlidingWindowOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/examples/ExampleSlidingWindowOracle.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/examples/ExampleSwapToPrice.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/examples/ExampleSwapToPrice.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/examples/README.md -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/interfaces/IUniswapV2Migrator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/interfaces/IUniswapV2Migrator.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/interfaces/IWETH.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/interfaces/V1/IUniswapV1Exchange.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/interfaces/V1/IUniswapV1Exchange.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/interfaces/V1/IUniswapV1Factory.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/interfaces/V1/IUniswapV1Factory.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/libraries/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/libraries/SafeMath.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/libraries/UniswapV2Library.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/libraries/UniswapV2Library.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/libraries/UniswapV2LiquidityMathLibrary.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/libraries/UniswapV2LiquidityMathLibrary.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/libraries/UniswapV2OracleLibrary.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/libraries/UniswapV2OracleLibrary.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/test/DeflatingERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/test/DeflatingERC20.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/test/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/test/ERC20.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/test/RouterEventEmitter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/test/RouterEventEmitter.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/contracts/test/WETH9.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/contracts/test/WETH9.sol -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/package.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/ExampleComputeLiquidityValue.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/ExampleComputeLiquidityValue.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/ExampleFlashSwap.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/ExampleFlashSwap.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/ExampleOracleSimple.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/ExampleOracleSimple.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/ExampleSlidingWindowOracle.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/ExampleSlidingWindowOracle.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/ExampleSwapToPrice.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/ExampleSwapToPrice.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/UniswapV2Migrator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/UniswapV2Migrator.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/UniswapV2Router01.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/UniswapV2Router01.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/UniswapV2Router02.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/UniswapV2Router02.spec.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/shared/fixtures.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/shared/fixtures.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/test/shared/utilities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/test/shared/utilities.ts -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/tsconfig.json -------------------------------------------------------------------------------- /notes/uni-v2/v2-periphery/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/notes/uni-v2/v2-periphery/yarn.lock -------------------------------------------------------------------------------- /rocket-pool.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/rocket-pool.md -------------------------------------------------------------------------------- /todo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/todo.md -------------------------------------------------------------------------------- /topics/amm/curve-v1/StableSwap3Pool.vy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/curve-v1/StableSwap3Pool.vy -------------------------------------------------------------------------------- /topics/amm/curve-v1/comparisons.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/curve-v1/comparisons.md -------------------------------------------------------------------------------- /topics/amm/curve-v2/CurveCryptoViews3Optimized.vy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/curve-v2/CurveCryptoViews3Optimized.vy -------------------------------------------------------------------------------- /topics/amm/curve-v2/CurveTricryptoMathOptimized.vy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/curve-v2/CurveTricryptoMathOptimized.vy -------------------------------------------------------------------------------- /topics/amm/curve-v2/CurveTricryptoOptimizedWETH.vy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/curve-v2/CurveTricryptoOptimizedWETH.vy -------------------------------------------------------------------------------- /topics/amm/intro/amm_equations.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/intro/amm_equations.md -------------------------------------------------------------------------------- /topics/amm/intro/amm_order_book.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/intro/amm_order_book.md -------------------------------------------------------------------------------- /topics/amm/intro/what_is_amm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/amm/intro/what_is_amm.md -------------------------------------------------------------------------------- /topics/mev/FlashbotsTest.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/mev/FlashbotsTest.sol -------------------------------------------------------------------------------- /topics/mev/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/topics/mev/README.md -------------------------------------------------------------------------------- /uniswap-v2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/uniswap-v2.md -------------------------------------------------------------------------------- /uniswap-v3.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/uniswap-v3.md -------------------------------------------------------------------------------- /utils/flat.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/utils/flat.js -------------------------------------------------------------------------------- /utils/rename.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/utils/rename.js -------------------------------------------------------------------------------- /utils/video_durations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/utils/video_durations.py -------------------------------------------------------------------------------- /whitepapers/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/README.md -------------------------------------------------------------------------------- /whitepapers/aave/aave-gho.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/aave/aave-gho.pdf -------------------------------------------------------------------------------- /whitepapers/aave/aave-v1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/aave/aave-v1.pdf -------------------------------------------------------------------------------- /whitepapers/aave/aave-v2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/aave/aave-v2.pdf -------------------------------------------------------------------------------- /whitepapers/aave/aave-v3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/aave/aave-v3.pdf -------------------------------------------------------------------------------- /whitepapers/curve/curve-cryptopools.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/curve/curve-cryptopools.pdf -------------------------------------------------------------------------------- /whitepapers/curve/curve-stableswap.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/curve/curve-stableswap.pdf -------------------------------------------------------------------------------- /whitepapers/uniswap/uniswap-v2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/uniswap/uniswap-v2.pdf -------------------------------------------------------------------------------- /whitepapers/uniswap/uniswap-v3.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cyfrin/advanced-defi-2024/HEAD/whitepapers/uniswap/uniswap-v3.pdf --------------------------------------------------------------------------------