1

I bought this token, had a good app for trading and a well written medium which didn't seem scammish at all.

the token even managed to pass on the normal basic tools for honeypot detection and tokensniffer (which after a 100 score is now retracted and pending review).

token is unsellable, when i tried skipping uniswaps app and using the V2 router contract directly, the error somehow relates to gas.I confirmed this when i tried to move some of the tokens to a different wallet and it failed and gave a "out of gas" error.

I have looked over the contract, and cannot see where the problem is. The team are able to sell the token, and so did someone else who I am guessing is part of the scam. if anyone could help explain where in the contract is the code causing the issue, I'd be eternally grateful. I am guessing there isn't a workaround to get the funds out, but I would at least like to be able to spot this code from now on.

here is the contract for "RUPX" https://etherscan.io/address/0xf59f55a77bcf64bfe4f9d3ad82b67838fea98ad3

thanks in advance for reading and your help!

2
  • I’m having a similar problem now, Eth token sell or transfer back to primary/alt wallet, ETC-200 troubles, BitGet swaps with Sushiswap. I feel like there should be a way able to recover a select amount of funda from a honey pot, right? I’ve been able to find things like the router V1 router CA but don’t know how to code or anything.. Can anyone explain solutions to this Commented Feb 23 at 12:14
  • @Lee Usually "scam tokens" are well written, and they block anyone not authorized to sell their tokens. You shouldn't interact with contracts you do not understand, they may contain deceiving code. Commented Mar 4 at 2:23

2 Answers 2

3

After reading the code I found that the _transfer is overridden:

function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); if (amount == 0) { super._transfer(from, to, 0); return; } if (limitsInEffect) { if ( from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !swapping ) { 

Based on my code review, as you can see you have a condition here where if you're not the owner, you're subject to everything inside the condition. This will be ignored if you're the owner. I didn't share the whole function because it is too long.

So this includes a condition where non-owners will be affected by the code inside it, but owners will not.

3
  • thanks for looking at this. is there a workaround? is there nothing that can be done? I see a few other wallets that are not the owner that are able to sell. Commented Apr 10, 2023 at 20:39
  • try to sell small amounts, are you sure that the transactions are failing ? can you show me any submitted failed transaction ? Commented Apr 10, 2023 at 22:18
  • etherscan.io/tx/… for example here I tried to send to an alternate wallet in case it was blacklisting wallets that had purchased, and the transfer to a wallet failed. I've tried to sell small amounts and it still gives a warning that the swap will fail, citing that it cannot estimate the correct amount of gas needed. Commented Apr 11, 2023 at 17:07
0

“from != owner()” is the problem. If you are not the token creator or owner, you are scammed

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.