People who code: we want your input. Take the Survey

Questions tagged [frontrunning]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
53 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
67 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
101 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
145 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
146 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
23 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
16 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
432 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
457 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
287 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)....