├── .github └── workflows │ ├── ci.yaml │ └── publish-crates.yaml ├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md ├── assets └── subway.png ├── bot ├── .dockerignore ├── .gitignore ├── Cargo.toml ├── Dockerfile ├── LICENSE ├── README.md ├── assets │ └── bot.png ├── benches │ ├── relayer.rs │ ├── uniswap.rs │ └── utils.rs ├── src │ ├── abi │ │ ├── IUniswapV2Factory.json │ │ ├── IUniswapV2Pair.json │ │ ├── IUniswapV2Router02.json │ │ └── mod.rs │ ├── banner.rs │ ├── lib.rs │ ├── main.rs │ ├── numeric.rs │ ├── relayer.rs │ ├── telemetry.rs │ ├── uniswap.rs │ └── utils.rs └── tests │ ├── numeric.rs │ ├── relayer.rs │ ├── uniswap.rs │ └── utils.rs └── contracts ├── .gas-snapshot ├── .gitignore ├── LICENSE ├── README.md ├── assets ├── gas.png └── plate.png ├── foundry.toml ├── interfaces ├── IERC20.sol ├── IUniswapV2.sol └── IWETH.sol ├── script └── Deploy.s.sol ├── src └── Sandwich.huff └── test └── Sandwich.t.sol /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.github/workflows/publish-crates.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/.github/workflows/publish-crates.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/README.md -------------------------------------------------------------------------------- /assets/subway.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/assets/subway.png -------------------------------------------------------------------------------- /bot/.dockerignore: -------------------------------------------------------------------------------- 1 | .env 2 | target/ 3 | tests/ 4 | Dockerfile 5 | assets/ 6 | LICENSE -------------------------------------------------------------------------------- /bot/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/.gitignore -------------------------------------------------------------------------------- /bot/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/Cargo.toml -------------------------------------------------------------------------------- /bot/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/Dockerfile -------------------------------------------------------------------------------- /bot/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/LICENSE -------------------------------------------------------------------------------- /bot/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/README.md -------------------------------------------------------------------------------- /bot/assets/bot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/assets/bot.png -------------------------------------------------------------------------------- /bot/benches/relayer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/benches/relayer.rs -------------------------------------------------------------------------------- /bot/benches/uniswap.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/benches/uniswap.rs -------------------------------------------------------------------------------- /bot/benches/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/benches/utils.rs -------------------------------------------------------------------------------- /bot/src/abi/IUniswapV2Factory.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/abi/IUniswapV2Factory.json -------------------------------------------------------------------------------- /bot/src/abi/IUniswapV2Pair.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/abi/IUniswapV2Pair.json -------------------------------------------------------------------------------- /bot/src/abi/IUniswapV2Router02.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/abi/IUniswapV2Router02.json -------------------------------------------------------------------------------- /bot/src/abi/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/abi/mod.rs -------------------------------------------------------------------------------- /bot/src/banner.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/banner.rs -------------------------------------------------------------------------------- /bot/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/lib.rs -------------------------------------------------------------------------------- /bot/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/main.rs -------------------------------------------------------------------------------- /bot/src/numeric.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/numeric.rs -------------------------------------------------------------------------------- /bot/src/relayer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/relayer.rs -------------------------------------------------------------------------------- /bot/src/telemetry.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/telemetry.rs -------------------------------------------------------------------------------- /bot/src/uniswap.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/uniswap.rs -------------------------------------------------------------------------------- /bot/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/src/utils.rs -------------------------------------------------------------------------------- /bot/tests/numeric.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/tests/numeric.rs -------------------------------------------------------------------------------- /bot/tests/relayer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/tests/relayer.rs -------------------------------------------------------------------------------- /bot/tests/uniswap.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/tests/uniswap.rs -------------------------------------------------------------------------------- /bot/tests/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/bot/tests/utils.rs -------------------------------------------------------------------------------- /contracts/.gas-snapshot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/.gas-snapshot -------------------------------------------------------------------------------- /contracts/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/.gitignore -------------------------------------------------------------------------------- /contracts/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/LICENSE -------------------------------------------------------------------------------- /contracts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/README.md -------------------------------------------------------------------------------- /contracts/assets/gas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/assets/gas.png -------------------------------------------------------------------------------- /contracts/assets/plate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/assets/plate.png -------------------------------------------------------------------------------- /contracts/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/foundry.toml -------------------------------------------------------------------------------- /contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IUniswapV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/interfaces/IUniswapV2.sol -------------------------------------------------------------------------------- /contracts/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/interfaces/IWETH.sol -------------------------------------------------------------------------------- /contracts/script/Deploy.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/script/Deploy.s.sol -------------------------------------------------------------------------------- /contracts/src/Sandwich.huff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/src/Sandwich.huff -------------------------------------------------------------------------------- /contracts/test/Sandwich.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/refcell/subway-rs/HEAD/contracts/test/Sandwich.t.sol --------------------------------------------------------------------------------