Click the badge above to launch the interactive notebook in your browser — no installation required.
Companion notebook to "Finding Solutions on the Ethereum DEX Landscape".
This notebook builds up the DEX routing optimization problem in four stages:
- AMM Primitives — constant-product exchange functions, state updates, price impact
- Graph Routing — shortest-path (Bellman-Ford) on the token graph
- Split Routing — concave optimization of split fractions across parallel pools
- Gas-Aware Routing — mixed-integer formulation with fixed costs per pool
All sections are interactive with sliders — adjust parameters and see results update in real time.
Install Julia (≥ 1.10), then:
using Pkg
Pkg.add("Pluto")
import Pluto
Pluto.run()Open dex_routing.jl from the Pluto file picker. Pluto will automatically install all dependencies on first run.
├── binder/
│ ├── Project.toml # Pluto dependency for Binder
│ └── start # Launch script for Binder
├── dex_routing.jl # The interactive Pluto notebook
└── README.md # This file