This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ethers = require('ethers') | |
const v3PoolArtifact = require("@uniswap/v3-core/artifacts/contracts/UniswapV3Pool.sol/UniswapV3Pool.json") | |
const v2PairArtifact = require('@uniswap/v2-periphery/build/IUniswapV2Pair.json') | |
const USDC_ETH_V3 = '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640' | |
const ETH_USDT_V2 = '0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852' | |
const ETH_USDT_SUSHI = '0x06da0fd433c1a5d7a4faa01111c044910a184553' | |
sqrtToPrice = (sqrt) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a basic uniswap frontrunning MEV bot | |
// Made by Merunas follow me on youtube to see how to use it and edit it: https://www.youtube.com/channel/UCJInIwgW1duAEnMHHxDK7XQ | |
// 1. Setup ethers, required variables, contracts and start function | |
const { Wallet, ethers } = require('ethers') | |
const { FlashbotsBundleProvider, FlashbotsBundleResolution } = require('@flashbots/ethers-provider-bundle') | |
// 1.1 Setup ABIs and Bytecodes | |
const UniswapAbi = [{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4paRIFNpZGUgTWlzc2lvbiAjMSDilpEKCkRpZmZpY3VsdHk6IOKYheKYheKYheKYhuKYhgrilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpHilpEKCk1yLlg6IEkgYWNjaWRlbnRhbGx5IHRyYW5zZmVycmVkIG15IEFscGhpZSB0byBteSBhbHQgd2FsbGV0IEJVVCBJIGNvdWxkbid0IHJlbWVtYmVyIGFsbCB0aGUgc2VlZCBwaHJhc2UhIEkgd3JvdGUgaXQgZG93biBidXQgc29tZSBvZiB0aGVtIGFyZSBtaXNzaW5nLi4uLiBJIG5lZWQgeW91ciBoZWxwLgoKMHhGNTE5Q2YyYTQzOWQ5NTM5N0VBYWJBNzc4NjhENDAyNTZEOWJBOTYyCgp3aW5nIHN3aWZ0IGJldHRlcgp1bmF3YXJlIOKWkeKWkeKWkeKWkeKWkeKWkeKWkSBmZWVkCnByb2Nlc3Mgc2FsdXRlIOKWkeKWkeKWkeKWkeKWkeKWkeKWkQrilpHilpHilpHilpHilpHilpHilpEg4paR4paR4paR4paR4paR4paR4paRIHdhdmUKCkludHJ1Y3Rpb25zOgoxLiBTdWJtaXQgQ29ycmVjdCBzZWVkcHJhc2UgdG8gdGhhdCB3YWxsZXQKMi4gU3VibWl0IFRYIChPcHRpb25hbCkKMy4gQ2hhbmdlIE9TIEJpbyB0byAiQmxhY2sgRHVzdCBORlQiCjQuIExpa2UsIFJUIGFuZCBTdWJtaXQgUHJvb2YgdG8gaHR0cHM6Ly9wYXN0ZWJpbi5jb20vY2FnY3lqQ2MKClJ1bGVzOgotIDFzdCBwZXJzb24gd2hvIGFibGUgdG8gdHJhbnNmZXIgdGhpcyBhbHBoaWUgdG8gdGhlaXIgd2FsbGV0IHdpbGwgZ2V0IHRvIGtlZXAgdGhhdCBBbHBoaWUuCi0gRmlyc3QgNSBnZXQgQUwKLSBG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="root">Loading...</div> | |
<script> | |
(function (w, d, s, o, f, js, fjs) { | |
w['BuildBubbles-Audio-Player'] = o; w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) }; | |
js = d.createElement(s), fjs = d.getElementsByTagName(s)[0]; | |
js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs); | |
}(window, document, 'script', 'w1', 'https://vasinl124.github.io/buildbubbles-audio-player-widget/build/widget.js')); | |
w1('init', { targetElementId: 'root' }); | |
w1('episodeid', { id: '<episodeId1>', center: true }); | |
</script> |