https://github.com/kenatsf/flash_loans_v3
Code to borrow as much { WETH, USDC, DAI, USDT } as you want from Aave and make an arbitrage transaction with Uniswap up to V3
https://github.com/kenatsf/flash_loans_v3
aave aave-lending aave-protocol crypto dai eth evm flash-loan flash-loans solidity truffle uniswap uniswap-exchange uniswap-v2 uniswap-v3 usdc weth
Last synced: 29 days ago
JSON representation
Code to borrow as much { WETH, USDC, DAI, USDT } as you want from Aave and make an arbitrage transaction with Uniswap up to V3
- Host: GitHub
- URL: https://github.com/kenatsf/flash_loans_v3
- Owner: KenatSF
- Created: 2022-02-08T05:30:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-09T07:07:39.000Z (4 months ago)
- Last Synced: 2025-07-03T22:42:54.049Z (4 months ago)
- Topics: aave, aave-lending, aave-protocol, crypto, dai, eth, evm, flash-loan, flash-loans, solidity, truffle, uniswap, uniswap-exchange, uniswap-v2, uniswap-v3, usdc, weth
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 69
- Watchers: 3
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aave Flash Loan and Arbitrage swaps
## Dependencies
* Node v14.17.5
* npm 6.14.14
* Ganache CLI v6.12.2
* Truffle v5.1.55Packages and their versions are in the "package.json" file
## Resources
* [Aave](https://github.com/aave)
* [Uniswap](https://github.com/Uniswap)
* [Flashbots ](https://github.com/flashbots)## Testing
The test is optimized to get a successful arbitrage transaction.Follow the steps.
Write in a console the next line:
```
$ ganache-cli --fork Ethereum-Node-URL@22429499 --unlock 0xE68d531d8B4d035bf3F4BC2DaBb70f51FbB14E23
```
(You can use [Infura](https://www.infura.io/) for the node. Also, the block number is important for the test.)Then, write in a different console within the root directory of the repository:
```
$ truffle test
```## Deployment
To deploy the contract into the Ethereum-Mainnet, run:
```bash
$ truffle migrate --network ethereum_mainnet
```
**Note: As an advice, I really recommend you to use [Foundry](https://github.com/foundry-rs/foundry) for your projects. It's a better tool than [Truffle](https://github.com/trufflesuite/truffle) or even [Hardhat](https://github.com/NomicFoundation/hardhat).**
**Good Luck! ;)**