PancakeSwapSmartRouter in a Foundry project.
This is a downloadable replica of the PancakeSwapSmartRouter contracts, found on-chain here on BSC.
I wanted to see what it looked like locally, and the Pancake people haven't released any repositories yet, so I painstakingly copied the code from bscscan and put it into a Foundry project for easy perusal.
Only changes thus far have been applying forge fmt
to the codebase for readability.
If this is your first time using Foundry, check out the installation instructions.
Article introducing Smart Router
PancakeSwap's extensive documentation on the Smart Router contract
This project is licensed under MIT.