├── .github └── workflows │ └── test.yml ├── .gitignore ├── .gitmodules ├── .vscode └── settings.json ├── Cargo.lock ├── Cargo.toml ├── contract └── Arbitrage.sol ├── foundry.toml ├── remappings.txt ├── script └── Arbitrage.s.sol ├── src ├── bin │ └── frontrun.rs ├── lib.rs └── utils │ ├── base.rs │ ├── contract.rs │ ├── flashbot.rs │ ├── listen.rs │ ├── mod.rs │ ├── simulate.rs │ └── simulate │ ├── state │ ├── base.rs │ ├── eth.rs │ ├── mod.rs │ └── token.rs │ └── strategy │ ├── flashloan.rs │ ├── mod.rs │ └── transfer.rs ├── test ├── Arbitrage.t.sol └── poc │ ├── 20221212_BGLD.t.sol │ ├── 20221229_JAY.t.sol │ ├── 20221230_Loan.t.sol │ └── NotFlationToken.t.sol └── tests ├── t_16298449.rs ├── t_16384470.rs └── t_bnb.rs /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/.gitmodules -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/Cargo.toml -------------------------------------------------------------------------------- /contract/Arbitrage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/contract/Arbitrage.sol -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/foundry.toml -------------------------------------------------------------------------------- /remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/remappings.txt -------------------------------------------------------------------------------- /script/Arbitrage.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/script/Arbitrage.s.sol -------------------------------------------------------------------------------- /src/bin/frontrun.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/bin/frontrun.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | pub mod utils; 2 | -------------------------------------------------------------------------------- /src/utils/base.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/base.rs -------------------------------------------------------------------------------- /src/utils/contract.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/contract.rs -------------------------------------------------------------------------------- /src/utils/flashbot.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/flashbot.rs -------------------------------------------------------------------------------- /src/utils/listen.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/listen.rs -------------------------------------------------------------------------------- /src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/mod.rs -------------------------------------------------------------------------------- /src/utils/simulate.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate.rs -------------------------------------------------------------------------------- /src/utils/simulate/state/base.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate/state/base.rs -------------------------------------------------------------------------------- /src/utils/simulate/state/eth.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate/state/eth.rs -------------------------------------------------------------------------------- /src/utils/simulate/state/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate/state/mod.rs -------------------------------------------------------------------------------- /src/utils/simulate/state/token.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate/state/token.rs -------------------------------------------------------------------------------- /src/utils/simulate/strategy/flashloan.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate/strategy/flashloan.rs -------------------------------------------------------------------------------- /src/utils/simulate/strategy/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate/strategy/mod.rs -------------------------------------------------------------------------------- /src/utils/simulate/strategy/transfer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/src/utils/simulate/strategy/transfer.rs -------------------------------------------------------------------------------- /test/Arbitrage.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/test/Arbitrage.t.sol -------------------------------------------------------------------------------- /test/poc/20221212_BGLD.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/test/poc/20221212_BGLD.t.sol -------------------------------------------------------------------------------- /test/poc/20221229_JAY.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/test/poc/20221229_JAY.t.sol -------------------------------------------------------------------------------- /test/poc/20221230_Loan.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/test/poc/20221230_Loan.t.sol -------------------------------------------------------------------------------- /test/poc/NotFlationToken.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/test/poc/NotFlationToken.t.sol -------------------------------------------------------------------------------- /tests/t_16298449.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/tests/t_16298449.rs -------------------------------------------------------------------------------- /tests/t_16384470.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/tests/t_16384470.rs -------------------------------------------------------------------------------- /tests/t_bnb.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KuTuGu/FrontrunBot/HEAD/tests/t_bnb.rs --------------------------------------------------------------------------------