Skip to content

Code to borrow as much { WETH, USDC, DAI, USDT } as you want from Aave and make an arbitrage transaction with Uniswap up to V3

Notifications You must be signed in to change notification settings

KenatSF/Flash_Loans_V3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aave Flash Loan and Arbitrage swaps

Dependencies

  • Node v14.17.5
  • npm 6.14.14
  • Ganache CLI v6.12.2
  • Truffle v5.1.55

Packages and their versions are in the "package.json" file

Resources

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 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:

$ truffle migrate --network ethereum_mainnet



Note: As an advice, I really recommend you to use Foundry for your projects. It's a better tool than Truffle or even Hardhat.

Good Luck! ;)

About

Code to borrow as much { WETH, USDC, DAI, USDT } as you want from Aave and make an arbitrage transaction with Uniswap up to V3

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published