Questions tagged [arbitrage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
16 views

ChatGPT Arbitrage MEV - Youtube Scam [duplicate]

I would like to warn everyone about a scam on YouTube titled "ChatGPT Arbitrage MEV: How to Use Slippage Bot and Make 2,000 per Day totally passive." Unfortunately, due to various personal ...
Jaca's user avatar
  • 1
0 votes
0 answers
68 views

Uniswap V2 optimal arbitrage amount

Tried out whole week to find an answer somewhere for this question, but, nothing to see, unfortunately, Let suppose there are 2 USDT/WETH pairs, one on Uniswap and another one on any Uniswap v2 fork ( ...
Mar St's user avatar
  • 1
0 votes
0 answers
40 views

Timeout Error: eth_callBundle . Flashbot

Hi I am having an issue in flashbotsProvider.simulate() while pushing a transaction to the miners to be send to the block without sending it to the mempool. Below is my source code // 1. Import ...
hammad ali's user avatar
0 votes
0 answers
185 views

A little help with the Uniswap V3 flash loan arbitrage code

I'm trying to use flash loans on Uniswap V3 to trade across different pools (two of these four: 0.01%, 0.05%, 0.30%, 1.00%) I've tried running codes from multiple tutorials: https://solidity-by-...
Joseph Capozza's user avatar
0 votes
0 answers
27 views

swapping tokens on clipper dex with code

https://etherscan.io/address/0x655eDCE464CC797526600a462A8154650EEe4B77 This is the link to the Clipper exchange pool where you can swap weth/wbtc/usdt/usdc/dai. I've been trying to execute a swap ...
aksu Ristola's user avatar
1 vote
1 answer
101 views

Is it possible to import foundry anvil in rust?

I successfully installed and used anvil from the wsl shell. I have some rust code, where i want to import foundry anvil instead of running from shell, cause i want to be able to control it from the ...
Sherlock zaguero's user avatar
0 votes
1 answer
242 views

pancakeswap v2 flash loan arbitrage real output amount is not as expected

when i monitor a profitable trade. The difference in profit calculated by my own method and the result of getAmoutsOut is not significant. Before sending the transaction, I would use the getAmoutsOut ...
DOGGODCoder's user avatar
0 votes
1 answer
55 views

flashloan-arbitrage: ENS error

I am trying to write a flashloan trading arbitrage bot as my first project but I keep on hitting the same error and I can not seem to fix it. Can anyone help me? My code's repo is here: https://github....
smartchainwiz's user avatar
1 vote
1 answer
535 views

Flashloan + flashbot

Can i use both flashloan and MEV builder in one transaction? Means borrowing from flashloan, then building my transaction in MEV builder (to prevent sandwich attack )? If it is possible, can anyone ...
Biruk Damte's user avatar
0 votes
0 answers
39 views

How is exchange rate calculated on DEX platforms like uniswap and sushiswap?

I started getting into the crypto scene and I read about liquidity pools but I am not sure how to get exchange rates into my javascript code, I looked for API's and SDK's but couldn't find any for the ...
user125002's user avatar
0 votes
0 answers
59 views

An example of arbitrage opportunity when LPs deposit assets in a pool

I am studying about automated market making (Uniswap version x*y=k) for the first time and now I'm currently looking at liquidity pools. Actually, I want to understand how the ratio of tokens' value ...
chanp's user avatar
  • 101
1 vote
1 answer
128 views

flash loan arbitrage vs flash loan attack

What is the difference between a flash loan arbitrage and a flash loan attack? If I somehow find an opportunity to make a 1000% profit which crashes one or more token, will it be considered an attack? ...
Saikat Karmakar's user avatar
0 votes
0 answers
198 views

Execution Error - ERC20: Transfer Amount Exceeds Balance in Ethereum Smart Contract

I'm encountering a perplexing issue while working on an Ethereum smart contract. It seems to be a parameter related error, but I haven't been able to rectify it. The following error message is ...
Joe B's user avatar
  • 3
0 votes
1 answer
94 views

I JUST RECENTLY TRIED A FRONT RUNNING BOT AS WELL [duplicate]

TOOK .51ETH FROM ME NOW HES ASKING FOR ANOTHER.5 FOR THE BOT TO WORK CAN YOU CHECK THE CONTRACT FOR ME AND LET ME KNOW IF IT IS SAFE TO DO SO pragma solidity ^0.6.6; // Import Libraries Migrator/...
Jordan Yare's user avatar
0 votes
0 answers
35 views

How to decode orca.so api response

I'm building my arbitrage bot with orca.so, when I try to fetch the price via their api this is the response: { "jsonrpc": "2.0", "result": { "...
Richie Pua's user avatar
0 votes
0 answers
32 views

In "simple-arbitrage" code, where does the abi.ts come from? Is this hand written or this is from uniswap provided info?

Where does this abi.ts come from? I was comparing it with Uniswap code here: but they don't look the same. Thanks
Nick's user avatar
  • 55
0 votes
1 answer
114 views

Profit or just waste of time?

I have some questions that I hope will be answered here I posted this question on twitter as well but with no response, I am a newcomer in the world of crypto and decentralized exchanges and Flash-...
Said's user avatar
  • 31
0 votes
2 answers
261 views

Is profitable direct arbitrage impossible with getAmountsOut?

I’ve run the math on a uniswap v2 arbitrage trade that looks more or less like this: 1) Buy X amount of token1 with Y amount of token0 on Uniswap 2) Sell equivalent amount of token1 in exchange for ...
Trent Kennelly's user avatar
1 vote
1 answer
2k views

Flash Loan Arbitrage Bot

I'm design an Arbitrage bot, and I wanted it to grab the funds from a flash loan. How would you implement this?
Barrocz's user avatar
  • 66
1 vote
0 answers
50 views

How can I get a sense of slippage before committing to the transaction?

Of course, as we all know, determining slippage for a certainty is impossible. I've done my best in my code to reduce my impact on slippage, finding the largest amount across the two pools in my ...
Trent Kennelly's user avatar
1 vote
0 answers
371 views

Uniswap V2 getAmountOut arbitrage calculation

I'm trying to learn more about arbitrage bots and it seems I'm stuck on profit calculation. Lets say I have two different routers - Uniswap V2 and Sushiswap To calculate possible arbitrage I use ...
yanko's user avatar
  • 11
0 votes
0 answers
119 views

I am wondering what address do you use to call flashloan?

I am using this address to call flashloan 0x65aFADD39029741B3b8f0756952C74678c9cEC93 but I get Gas estimation failed error please let me know if you use another address and successfully call the ...
shawn t's user avatar
1 vote
2 answers
832 views

"Error: Transaction has been reverted by the EVM" <- don’t even know where to start

So, first off, I have checked every single question on this topic, and it seems to come down to the particulars of the code. I can't find a throughline for any of them. That said, I have a bot that ...
Trent Kennelly's user avatar
1 vote
0 answers
61 views

hardhat script giving this error when ran

Please, I need help clearing this. root@DESKTOP-O7HMHFH:/mnt/c/pr0/projects/arbitrage/comp# npx hardhat run scripts/manipulate.js --network localhost Beginning Swap... Input Token: COMP Output Token:...
Soyaya's user avatar
  • 31
0 votes
4 answers
302 views

Flash loan basics

hello everyone pls i've been trying to write some solidity code for flash loans , im kind of new to it , i would like to know after testing and deploying your smart contract with a test net without ...
RichMond's user avatar
1 vote
1 answer
823 views

Triangular Arbitrage or multiple swap arbitrage

Is it posible to develop a bot with a multiple step arbitrage? like 5 swaps and above? trying my hands on triangular arbitrage with bots on dexes, able to run a binary arbitrage. can i get a sample ...
Soyaya's user avatar
  • 31
0 votes
0 answers
939 views

Formula For Calculating Optimal Input for Arbitrage Transaction

I have the following code which calculates the maximum order quantity permissible given a price impact of i, which I wrote based on this explanation of price impact: https://dailydefi.org/articles/...
Chev_603's user avatar
  • 157
0 votes
2 answers
720 views

How to search for arbitrage opportunities?

Noticed some arbitrageurs playing around. For example, this tx (swap BUSD for ETH https://bscscan.com/tx/0xdebf81a126249386d15ae003006f7b7862087aecf3ef9775a5f1d0bae10e6047) opened an arbitrage ...
Rigg's user avatar
  • 11
1 vote
1 answer
336 views

Problem running arbitrage flashloan test app in JS [closed]

I´ve created a JS script to test arbitrage flashloan with Ethereum blockchain. When I attempt to run this code sample directly under the Truffle command line and run the uniswapFactory.getPair(...
Samboy's user avatar
  • 21
0 votes
1 answer
126 views

Transaction failing but I'm unsure why

I am attempting to create a test arbitrage bot on the Goerli testnet. Here is my smart contract which should perform a swap from Uniswap to Sushiswap : pragma solidity =0.6.6; import './...
pocockn's user avatar
  • 163
2 votes
1 answer
241 views

Work out Eth price from getAmountsIn method

I am attempting to create a test arbitrage bot using Uniswap & SushiSwap. I can successfully get the amount of X tokens I would get for 1 WETH on both dexes. For example: ​ Uniswap: WETH / USDT ...
pocockn's user avatar
  • 163
3 votes
1 answer
803 views

How are arbitrage bots so fast?

I built a system to monitor token prices on a given EVM blockchain. I monitor the token prices on several decentralized exchanges (DEX) by looking at the reserves of tokens for pairs of tokens. To ...
JPFrancoia's user avatar
0 votes
1 answer
277 views

Flashloan Arbitrage error 'SafeERC20: low-level call failed'

So I finally am almost finished with my flashloan arbitrage how ever when I run it I get this error 'SafeERC20: low-level call failed' here is my contract code // SPDX-License-Identifier: MIT pragma ...
AngelDev's user avatar
  • 107
1 vote
0 answers
796 views

Hardhat throwing 'missing revert data in call exception; Transaction reverted without a reason string'

After installing Hardhat's npm package latest version following this brief guide and setting up my first 'sample project', i tried to create a script and deploy a contract on the BSC mainnet. I edited ...
Mattia Monari's user avatar
1 vote
1 answer
81 views

Make sure transaction will be in block x

I am currently building a frontrunning bot for the Binance Smart Chain. The problem: Sometimes my transaction is getting into the block I want, sometimes I miss the block by some ms I guess My ...
Blocktoshi's user avatar
0 votes
2 answers
7k views

How to fix PancakeLibrary: INSUFFICIENT_INPUT_AMOUNT?

I'm trying to make a multiple swap function in my smart contract using solidity. For example we want to swap BNB->BUSD->USDT->ADA->BNB. The contract interacts with PancakeSwap. I deployed ...
Дмитро Швагуляк's user avatar
0 votes
1 answer
81 views

Are liquidity pool prices consistent in the same token pairs, between fee-designated pools in Uniswap v3?

In Uniswap v3, you can have up to three fee-designated pools (0.05%, 0.30% or 1.00%) per token pair. Do the token prices remain exactly the same across these pools or are there discrepancies across ...
ElHaix's user avatar
  • 187
2 votes
0 answers
140 views

Any public contracts / dApps that can execute multiswap?

Are there any smart contracts on ETH mainnet that can be used to execute e.g. arbitrage swap on single call? E.g. USDC -> DAI -> WETH -> USDC? Or actually I'm more interested doing round-trip ...
kpeteL's user avatar
  • 81
2 votes
1 answer
527 views

Why I need smart contract for arbitrage

To make arbitrage between two defis why i need a smart contract? web3py or web3js can interact with defi smart contracts. A script can monitor price difference and if find arbitrage opportunity script ...
marcusholter's user avatar
1 vote
1 answer
249 views

How haven't flash loans completly destabilized the ethereum blockchain?

Now bare with me here, I might have kinda misunderstood what a flashloan actually is. Internet tells me that it's a type of uncollaterized lending, where a smart contract takes money out of a pool, ...
as-Sirat's user avatar
0 votes
2 answers
353 views

Solidity Expected '(' but got identifier

So I am working on a flash loan arbitrage in solidity and was coding the arbitrage logic when I got hit with Expected '(' but got identifier here is the code for the arbitrage function startArbitrage( ...
AngelDev's user avatar
  • 107
0 votes
1 answer
336 views

MEV explore flashbots

What's the exact definition of Outlier MEV txs currently in review on Flashbot's MEV-explore dashboard? Does it mean that the transactions there are currently under review and the profit (MEV Tx ...
dNyrM's user avatar
  • 870
1 vote
0 answers
407 views

Is there any trick (besides high gas fee) to get transactions included in the next Polygon block?

I recognize some arbitrage opportunities on the Polygon network and tend to include my transactions in the next block. Since Polygon's transaction time is too low, I know that I have to do it quickly ...
Ehsan Khodarahmi's user avatar