Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NotificationsYou must be signed in to change notification settings

KenatSF/Flash_Loans_V2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 testing is optimized for a successful arbitrage with a Flash Loan.

Before running the test you should run in a console:

ganache-cli --fork EthereumNode-URL@13009534 --unlock 0xE8E8f41Ed29E46f34E206D7D2a7D6f735A3FF2CB

(The block number is important for the testing).

Then, to run the test:

truffle test

Deployment in Polygon

To deploy the contract to the Polygon-Mainnet, run:

$ truffle migrate --network polygon_mainnet

Before deploy it you must change the Aave: Leending Pool Address Provider V2 for its address at Polygon, which is: 0xd05e3E715d945B59290df0ae8eF85c1BdB684744. Also, make sure you have enough MATIC for deployment.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp