Questions tagged [frontrunning]

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

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

Will this DeFi bot work as is, given that there're front runing bots out there?

Will this bot https://extropy-io.medium.com/coding-a-defi-arbitrage-bot-45e550d85089 work as is, given that there’re front-run bots out there? Or will it necessitate some tweaks first to counter them?
0
votes
0answers
16 views

Where do bot front bot runners get initial liquidity?

In order to pull off front running attacks or arbitrage, a person who runs a bot has to have enough liquidity, doesn't he? For instance, to beat a transaction of 100 ETH he'll have to do this amount ...
0
votes
1answer
73 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
1answer
25 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
1answer
36 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 ...
1
vote
1answer
354 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 ...
0
votes
1answer
98 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
0answers
84 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
1answer
40 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(...
0
votes
0answers
28 views

Lifecycle of transaction when sent via web3

I'm trying to optimize the speed between the time the tx is sent and the tx is mind on polygon (matic) blockchain via web3. I tried to raise significantly the gasPrice but it still takes a lot of time....
6
votes
1answer
203 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&...
1
vote
1answer
147 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.
4
votes
1answer
548 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
2answers
205 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 ...
2
votes
1answer
244 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 ...
1
vote
0answers
33 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 ...
1
vote
0answers
21 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
0answers
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 ...
2
votes
0answers
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 ...
4
votes
1answer
477 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
3answers
563 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 ...
3
votes
0answers
292 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)....