Complexlity
@complexlity
There's this theory that you could be airdropped a scam token and if you try to sell it, all you wallet is drained. is this true? or just not exactly what happens. I've been hearing about this but with my current solidity knowledge, I'm not sure how it's possible. I'm thinking, If it was possible, everyone would have been drained by now.
3 replies
0 recast
2 reactions
Vladyslav Dalechyn
@dalechyn.eth
i was never brave enough to try it out but it does sound logically impossible since an approval must be done from msg.sender to drain the coins. would you like to investigate it? it's actually interesting what's the purpose of those then
1 reply
0 recast
0 reaction
Complexlity
@complexlity
Okay. But for you to swap the token, you’ll also need to do an approval. So I wonder if it’s possible to mask a “drain all coins “ approval inside a the token’s approval method. Again, if this was possible Everton should be drained by now because any single token can just do: 1. Create a token. 2. Add some insane amount of initial liquidity (say 500k on both ends) and let people buy then drain millions of dollars at a later time. I’ll do a bit more research. I’m assuming it’s my skill issues though but will update when I get more info
1 reply
0 recast
1 reaction