Questions tagged [frontrunning]

Questions related to frontrunning, such as preventing frontrunning, or events that involved frontrunning.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Remix Scam frontrun Uniswap

If anyone can help because I'm learning the hard way lol... I used this code to create a contract on Remix, Itransferred 1 Eth and they are still in the contract I created but before pressing start to ...
0 votes
1 answer
61 views

Trying to withdraw from contract - Fail with error 'WARNING: not enough ETH for profitable frontrunning. Need at least 1 ETH at present market ...'

Tried to use a standard front running bot but the thing is my eth is still on the contract so I don't think I've been scammed (yet) makes no sense since my eth is still sitting there. this is the code ...
  • 3
0 votes
0 answers
22 views

Is this a scam or what? Remix unidwapfrontrunbot [duplicate]

pragma solidity ^0.6.6; // Import Libraries Migrator/Exchange/Factory import "https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/IUniswapV2Migrator.sol"; ...
  • 11
0 votes
1 answer
169 views

Beware of "Uniswap Front Running Bot" Scam

Hi everyone sorry for my english i used translator . I have a big problem on a contract I created under remix frontrunning uniswap solidity 6.6 on injectedWeb3 with my métamask wallet. But when I want ...
0 votes
1 answer
50 views

Deployed a contract to bot WETH yesterday, added liquidity, actioned it. Now I'm getting this when I try to withdraw [duplicate]

This is the same issue as below: How to retrieve ETH accidentally sent to a contract that is watch only Funds are still there but get this: Gas estimation errored with the following message (see ...
2 votes
1 answer
2k views

Got scammed using bad code to create front running bot [duplicate]

I got scammed by bad code on a front running bot. I used the code in Remix, deployed it, and then sent money to it. (Put another way, I don't code, had no idea what I was doing, but decided to try it ...
3 votes
0 answers
72 views

Why does Tornado Cash can not be attack by "front running attack"?

If a miner sees the transaction with the "Tornado Cash withdraw" in the mempool and decides to create another transaction of his own, how the Tornado Cash defeat this?
  • 107
0 votes
1 answer
46 views

Absolute fastest way of sending a transaction on Ethereuem? (in 2022)

What is the absolute fastest way of sending a transaction on Ethereum? (use case: trading microcap coins on Ethereum blockchain which are highly volatile so transaction speed matters) Would it require ...
  • 1
0 votes
1 answer
83 views

Weird block: miner prioritized lower gas TXs (200 times lower!) and let others fail. Analysis and questions

I encountered a situation that made me doubt everything I know about Ethereum transactions. In block 14721317 the transactions in positions [0, 1, 2, 3, 5, 9] all contain the same BuyOrder to buy the ...
  • 3
0 votes
0 answers
571 views

How to modify my sniper bot (or front-run bot) to bring the profit?

The sniper bot will scan the mempool and find addliquidity method and then buy the token. The sniper bot can work but it always loss money because the following reason: Maybe the token have the very ...
0 votes
1 answer
363 views

MEV bots contract addresses [duplicate]

how so many MEV bots contract addresses start with many zeros? I understand they do so to use less gas but how they manage to create contracts with such addresses?
  • 13
1 vote
1 answer
417 views

How front running bots can see private transactions sent via FlashBots?

just an example of sandwich attack on a private transaction sent via FlashBots. How the front running bot could see the transaction if it should be private?
  • 13
1 vote
1 answer
74 views

Could front-running be mitigated by placing the transaction fee data in the signed bytes?

I'm very much learning. I've just discovered front-running and MEV (not the hard way, luckily). My understanding is that the transactions are reordered based on cloning the transaction and sending it ...
1 vote
1 answer
654 views

Stop frontrunner bots by comparing block.number of buy tx versus sell and transfer tx?

I'm wondering whether I can stop / impair the 'standard' frontrunner / sandwich bots from frontrunning my (pretty standard) ERC20 token contract. I'm thinking to add a mapping called "...
  • 11
1 vote
1 answer
2k views

I got into a scam of front running bot [closed]

i got scammed few days back through a youtube video. i did exactly as they said and send .15+.35 a total of .5 BNB. I know i am the dumbest person but is there any way i can get my bnb back? As i ...
  • 11
1 vote
1 answer
171 views

How to send a frontrun resistant transactions using a browser extension like MetaMask?

It used to be very simple to send a private transaction on Ethereum. My aim is to perform a trade which would be fontrun if it was sent in the mempool or shared with all miners. As there’s no way to ...
0 votes
2 answers
109 views

What is the best way to check if the contract has experienced sandwich attacks

I am searching for a convenient way or tool to see if the contract was exploited by frontrunners. I have several smart contracts that expose functions that are suspect to these so-called sandwich ...
  • 247
0 votes
2 answers
2k views

Is possible to prevent front-running using own contract to do swaps in Uniswap?

If instead of using my wallet I use a contract in Solidity to make the swaps in Uniswap (That is, calling the uniswap API from the contract instead of using the Uniswap interface) Is it possible to ...
0 votes
1 answer
394 views

Run my own full node for prevent front running

If I run my own full node and I use to send all my transactions to Etherum do I prevent my transactions from being front runned?
1 vote
1 answer
141 views

Trying to understand front running "dark forest" solution

I just got the chance to read about the Dark Forest problem describing an actual front running attack: https://www.paradigm.xyz/2020/08/ethereum-is-a-dark-forest/ I didn't fully understand the ...
2 votes
1 answer
5k views

How do frontrunners / sandwich bots work? How do they affect the price in the pool?

I'm trying to understand how frontrunners work in ERC20-Uniswap. Currently, I don't understand how they can "drain" ETH from a transaction. My understanding is that the price of the pool ...
  • 151
1 vote
1 answer
753 views

Is there a way to manually set your transaction's position in a block?

I've seen some action on a coin I was monitoring on BSC using poocoin (similar to dextools but for bsc - it shows buys and sells). Whenever there was a big buy/big sell on this coin, there would be an ...
1 vote
0 answers
417 views

How do sophisticated generalized frontrunner bots work?

By sophisticated generalized frontrunner bots, I mean the bots that execute a pending mempool transaction and copy profitable internal transactions generated by its execution trace, as mentioned in ...
0 votes
1 answer
103 views

Front-running issue in Staking

so I got a code which I suspect is prone to frontrunning at least theoretically. function deposit(uint _amount) public { uint256 _pool = balance(); uint256 _before = token.balanceOf(...
7 votes
1 answer
781 views

How does one get such precise ordering of transactions in the same block?

This looks like a "sandwich" (aka front running) attack executed in the same block 12564977. The transaction in the middle was buying KEK from a Uniswap pool. Someone was able to "wrap&...
  • 173
2 votes
1 answer
342 views

pancakeswap anti Front-Run

Please tell me how I can protect myself from the frontrunning on the pancakeswap exchange. I use python3 and web3.py but when i set max gas price it is not help me.
  • 39
4 votes
1 answer
2k views

What is the best way to use uniswap without router?

I just bought a scam token. The liquidity pool is still there but I couldn't sell because I couldn't approve the token in Uniswap. When I try to approve, the error "execution reverted: ERC20: ...
8 votes
2 answers
539 views

Commit-Reveal contract still vulnerable to front running. How can it be improved?

I'm writing a contract and I want to shield it from front-running as best as it can possible be done (obviously, fully preventing front running would be ideal). My implementation is very similar to ...
  • 83
4 votes
1 answer
507 views

Why contract are used for bot purpose instead of use their eth address directly?

Each time i see bot frontrun it's a contract address. Why it's a contract address ? People who use bot are not able to use their ethereum address directly ? or there is a benefit to use contract ...
2 votes
0 answers
112 views

How does zero knowledge proof prevent frontrunning

I have learned about that zkp can hide the information of orders, e.g. the type and the number of assets, but it's still confusing. Is there any paper or project about using zero-knowledge proof to ...
  • 21
2 votes
0 answers
40 views

How to test if a transaction create a specific event using the trace api?

I need to frontrun a transaction on a specific contract only if does a specific thing which is fired as an event once included in a block. So how to get the event based on current contract state of an ...
2 votes
0 answers
1k views

What are the front running bots? [duplicate]

I've been seeing too many threads about this. I was curious about what are they how do they function? Is it basically an automated trading algorithm that just executes trades when a cryptocurrency is ...
  • 151
3 votes
0 answers
1k views

Frontrunning Uniswap horror story transactions

From the Ethereum is a Dark Forest post, the rescue plan was: Deploy a Getter contract which, when called by its owner, would make the burn call ONLY if activated, and otherwise revert. Deploy a ...
  • 80.7k
4 votes
1 answer
700 views

What is the "pre-commit" scheme to defeat frontrunning attack?

I am writing to inquire feasible strategies to defeat Transaction Ordering Dependence (TOD) bugs. I learned from the best practice guideline such that we can use a so-called "pre-committed" scheme ...
1 vote
3 answers
911 views

How to prevent frontrunning: someone running a transaction before me?

Let's say I have the following in my smart contract: string passwordHash; uint money; function checkPassword(string cleanPassword, string newPasswordHash)[...] When running the function ...
  • 663
3 votes
0 answers
318 views

Did f2pool manipulate transactions during the Status ICO?

Blocks such as this one and this one appear to show preferential treatment being given to f2pool transactions in blocks mined by f2pool during the beginning of the Status ICO (at block height 3903900)....
  • 21.3k