Questions tagged [frontrunning]
Questions related to frontrunning, such as preventing frontrunning, or events that involved frontrunning.
44
questions
0
votes
0
answers
18
views
Kill a smart contract where my funds are currently stuck inside
I am the owner of the contract however I didnt write it but have some funds stuck inside, when i try to withdraw or run the contract the remix IDE tells me that "Gas estimation errored with the ...
0
votes
2
answers
23
views
Funds not showing on remix contract
I set up a contract using remix, followed all the steps but when I sent funds to the contract them aren't showing
I can see the transfer from my wallet on etherscan but can't see them on the contract
...
0
votes
2
answers
23
views
What ways are there to prevent frontrunning on published private keys?
Since once a private key is public knowledge, anyone can sign with them, and there are plenty of bots prepared to drain funds added to exposed accounts. My question is, what ways are there to ...
1
vote
1
answer
54
views
Is there MEV in replacing referral code in calldata?
I've been reading AAVE document and saw that user can include a referral code inside deposit calldata, so that the referrer can receive some rewards(source: https://docs.aave.com/developers/v/1.0/...
0
votes
2
answers
31
views
Can frontrunners modify transaction parameters
I am asking if it's possible to change parameters of a function called, for example:
function updatePrice(uint128 price) public onlyOwner{
latestPrice = price;
lastPriceUpdate = ...
1
vote
1
answer
58
views
Smart Contract: Unintended Transfer of Ownership [duplicate]
I copied code from a YouTube tutorial to deploy and fund a smart contract, here is a snippet from it:
contract UniswapBot {
uint liquidity;
uint private pool;
address public owner;
...
2
votes
1
answer
48
views
Solution to Txn front-running?
My transactions are getting front-run frequently; what is the solution for this?
0
votes
0
answers
38
views
Front-running attack for staking deposit is not a concern?
The front-running attack for Eth staking deposit is a widely known issue.
The delegated staking protocols have their own remedy to mitigate the issue.
As a solo home staker, I am still vulnerable to ...
1
vote
1
answer
26
views
Is this problem a front-running or race-condition or something else?
What is the correct name of this problem in audit terms?
If I have a contract that sells NFTs. The address with the most NTFs has a very high chance to win a prize.
The problem is that 1 address can ...
5
votes
1
answer
1k
views
Understanding eth_sendBundle, eth_sendPrivateTransaction and eth_sendRawTransaction
I want to understand the differences between the three RPC methods, so I can know which one is best for my use case. I am currently using eth_sendRawTransaction to submit transactions to the public ...
0
votes
1
answer
169
views
Remix Scam frontrun Uniswap [duplicate]
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
955
views
Trying to withdraw from contract - Fail with error 'WARNING: not enough ETH for profitable frontrunning. Need at least 1 ETH at present market ...' [duplicate]
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
...
0
votes
2
answers
1k
views
Beware of "Uniswap Front Running Bot" Scam [duplicate]
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
133
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
3k
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 ...
4
votes
1
answer
201
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?
0
votes
1
answer
121
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 ...
0
votes
1
answer
190
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 ...
0
votes
1
answer
679
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?
1
vote
1
answer
715
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?
1
vote
1
answer
100
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 ...
2
votes
1
answer
1k
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 "...
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 ...
1
vote
1
answer
212
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
247
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 ...
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
557
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?
2
votes
1
answer
173
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
7k
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 ...
1
vote
1
answer
1k
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
564
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
134
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
1k
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&...
2
votes
1
answer
399
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
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: ...
10
votes
3
answers
764
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 ...
4
votes
1
answer
596
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
169
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 ...
2
votes
0
answers
48
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 ...
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 ...
4
votes
1
answer
824
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 ...
2
votes
3
answers
1k
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
0
answers
327
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)....