flashloan-rs •

Minimal Multicall3 Flashloan Module.
Getting Started
Flashloan-rs is published to crates.io as flashloan-rs.
To use the crate in a Rust project, run the cargo add command like so: cargo add flashloan-rs.
Or, add the following to your Cargo.toml:
[]
= "0.1.0"
Usage
Flashloan-rs is built to be extremely simple to use.
// TODO
Blueprint
.
├─ contracts
│ ├─ interfaces
│ │ ├─ sol — ERC20 interface
│ │ ├─ sol — Flashloan borrower interface
| | └─ sol — Flashloan lender interface
│ ├─ huff — A Flashloan Receiver Contract Implementation
│ └─ sol — An Extensible Flashloan Receiver Contract
├─ examples
│ ├─ custom_borrower.rs — Flashloan-rs usage with a custom borrower contract
│ └─ pure_arb.rs — Executing a pure arbitrage with flashloan-rs
├─ lib — Foundry Libraries
├─ src
│ ├─ builder.rs — The FlashloanBuilder
│ ├─ errors.rs — Custom errors
License
Acknowledgements
A few very notable repositories that were used as reference: