Questions tagged [arbitrage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 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 ...
user avatar
  • 101
1 vote
0 answers
31 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 ...
user avatar
0 votes
0 answers
30 views

How to Calculate the Initial Amount for an Arbitrage Trade?

How to Calculate the Initial Amount for an Arbitrage Trade? Here's an arbitrage example https://bscscan.com/tx/0xafba7227e889964f1ee68297191340f0c942f23ca6e8391a290f9fdbc3a50160 Only uniswap v2 is ...
user avatar
0 votes
0 answers
25 views

How does decimal precision affect a Token in an exchange?

Suppose there is a token with a very small rate compared to USD (e.g. 0.00000001 USD). What are the disadvantages and advantages of adding more decimal places for that in an exchange? Does it make ...
user avatar
  • 1
0 votes
1 answer
55 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 ...
user avatar
  • 107
0 votes
0 answers
68 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 ...
user avatar
0 votes
0 answers
161 views

How to test out the flash loan arbitrage smart contract on BSC network?

I am in learning flash loan from PancakeSwap, I would like to know what is the better way to test out my flash loan arbitrage smart contract before deploying to BSC mainnet? If I enter all real world ...
user avatar
  • 1
0 votes
0 answers
54 views

Arbitrage bot couldn't be deployed on testnets

I am currently working on a Crypto arbitrage bot. It's V1.0 finds arbitrage opportunities on UniswapV2 and Kyber Swap. The challenge I am facing is testing this bot, as I just discovered there is zero ...
user avatar
0 votes
0 answers
18 views

Latest Subgraph query

How to get the latest subgraph of pancakeswap ? I have tried with the below link but it is not working fine go to this link
user avatar
1 vote
1 answer
40 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
0 votes
0 answers
9 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 ...
user avatar
  • 177
0 votes
0 answers
74 views

How to read the arbitrage table from cryptorank.io?

In trying to validate data in my own arbitrage Dapp, I'm manually referencing various apps such as Uniswap, Furucombo and recently came across Cryptorank. Let's consider a USDT/WETH look-up between ...
user avatar
  • 177
2 votes
0 answers
73 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 ...
user avatar
  • 81
2 votes
1 answer
237 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 ...
user avatar
1 vote
1 answer
111 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, ...
user avatar
0 votes
2 answers
222 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( ...
user avatar
  • 107
0 votes
1 answer
203 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 ...
user avatar
  • 327
1 vote
0 answers
151 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 ...
user avatar