Skip to main content

Questions tagged [arbitrage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Cant get uniswap prices from node.js code. Please help

I am trying to run this code to get the current uniswap prices of WETH/USDC in order to complete potential crypto DeFI arbitrage oppotunities: const { ethers } = require("ethers"); const ...
bestcode123's user avatar
0 votes
1 answer
32 views

How to Perform Cross-Chain Swaps?

I'm trying to facilitate cross-chain swaps between Binance Smart Chain (BSC) and Polygon networks. What are the steps or tools I can use to achieve this? I'd appreciate any guidance or resources you ...
adam mr's user avatar
  • 131
1 vote
1 answer
16 views

Best path search on DEXes

I'm currently working on a project that involves implementing a best path searcher for multi-hop swaps in JavaScript. Specifically, I'm looking for a code sample or library that can efficiently find ...
adam mr's user avatar
  • 131
0 votes
1 answer
182 views

Is the code in the link a scam? It's for "Uniswap ETH Arbitrage Bot" [duplicate]

There is a video on youtube with over 30k views, and I'm sus it's a scam...is it the video: https://www.youtube.com/watch?v=4eLJZpGSHqk&t=20s&ab_channel=CryptoChemist%F0%9F%A6%87 the code: ...
Mephistopheles's user avatar
0 votes
0 answers
26 views

How to calculate the graph edge weights when doing arbitrage on Uniswap using Bellman-Ford?

I am trying to create an arbitrage bot on Uniswap by using graph data structure. On this graph tokens represent nodes and the exchange rate between tokens represent edge weights. By applying -log ...
Ahmet Yazıcı's user avatar
0 votes
0 answers
12 views

have you seen false calims of code using ChatGPT in Arbitrage strategy and slippage? [duplicate]

I have seen identical videos on you tube and in other sites claiming to make passive income through code from ChatGPT in Arbitrage strategy and slippage. ALL FAKE and will take your ETHER. If this ...
OndaMax's user avatar
0 votes
0 answers
22 views

On-chain or Off-chain: Optimal Calculation for Arbitraging Two v2 Pairs?

I'm currently exploring arbitrage opportunities involving two v2 pairs and I'm wondering whether it's more advisable to compute the optimal amount to trade on-chain or off-chain. What are the key ...
adam mr's user avatar
  • 131
0 votes
1 answer
47 views

Is this contract just sending eth to scammers address [duplicate]

https://ethbotarbitrage.com/code Trying to understand what it does.
Ravikiran R's user avatar
0 votes
0 answers
28 views

Can anyone figure out how this guy does arbitrage?

The owner of this tx record is constantly arbitraging for small amounts. It does these directly via pair. So it's not using a router. In my own testing I have always found that the amount of output is ...
Jack Suelman's user avatar
0 votes
1 answer
917 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
125 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
498 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
39 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
147 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
468 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
113 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
859 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
52 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
98 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
173 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
1 answer
102 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
1 answer
125 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
381 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
55 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
439 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
132 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
3 votes
2 answers
985 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
69 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
721 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
1k 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
1k 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
853 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
349 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
130 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
289 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
1k 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
301 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
866 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
89 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
8k 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
133 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
155 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
592 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
301 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
356 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
345 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
  • 938
1 vote
0 answers
462 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