A collection of implementation examples of EIP-3156, Aave, MakerDAO, Uniswap, and etc...
- Node.js (16.x)
- Yarn (3.x)
$ yarn install
$ yarn test
$ yarn test test/basic
- https://eips.ethereum.org/EIPS/eip-3156
- https://soliditydeveloper.com/eip-3156
- https://docs.openzeppelin.com/contracts/4.x/api/interfaces#IERC3156FlashLender
- https://docs.openzeppelin.com/contracts/4.x/api/interfaces#IERC3156FlashBorrower
- https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#ERC20FlashMint
- https://github.com/alcueca/ERC3156
...
- https://docs.aave.com/developers/guides/flash-loans
- Aave - Flash Loan
- https://www.alchemy.com/overviews/creating-a-flash-loan-using-aave
...
- https://docs.makerdao.com/smart-contract-modules/flash-mint-module
- https://github.com/makerdao/dss-flash
- https://docs.uniswap.org/protocol/guides/swaps/single-swaps
- https://uniswap.org/blog/your-first-uniswap-integration
- Uniswap V3 - Single Hop Swap
- Uniswap - Flash Swaps
- Uniswap: Flash Swaps on Uniswap v3
We love pull requests from everyone. By participating in submitting examples, we believe other people will find them useful when they getting started with the topic.
The software is available as open source under the terms of the MIT License.