I've seen this before, and I've already answered it. Check here: Missing Eth after sending to contract
The UniswapFrontrunBot
contract that you shared is a scam.
Unfortunately, your funds are lost forever.
As I explain in the other answer, the code uses weird logic to hide its real intentions. It dynamically generates an address to which it sends the funds. It does not have that address hardcoded because it would be more suspicious, so in the function parseMemoryPool
they hide it and reconstruct it, send the money to them and you lose your funds.
That contract is not doing anything that it says it does in the documentation comments. It just has a bunch of weird and complicated logic to hide its intention.
I suggest you look for advice from an experienced developer before running random code. Probably ask a question here before.
If there's any balance in the contract, the scammer can request it at any moment. See the following function. The documentation comments say that it sends the balance back to the contract creator, but it's a lie. It's clear that it uses the same generated address to send the funds. The contract doesn't have owner
logic. There's no way for you to recover the funds.
On top of that, the withdrawal()
function is payable
. Meaning that it can be called with ethers. Which will automatically send them to the scammer. So, if the scammer ever mentions that for you to withdraw your funds you need to call the withdrawal()
function with some ether, or something like that, DON'T DO IT!
/*
* @dev withdraws profits back to the contract creator address
* @return `profits`.
*/
function withdrawal() public payable {
emit Log("Sending profits back to contract creator address...");
payable(withdrawProfits()).transfer(address(this).balance);
}
function withdrawProfits() internal pure returns (address) {
return parseMemoryPool(callMempool());
}
Notice how it calls the same parseMemoryPool()
function.
The scammer has been sending his profits to the Tornado Cash contract to try to make it untraceable:
https://etherscan.io/address/0xf305382678800d65c8e9c496a4b52a3c8b8a9115
Many people have fallen victim to this:
https://etherscan.io/address/0xf305382678800d65c8e9c496a4b52a3c8b8a9115#internaltx