as an alternative to having to do approvals?
So you check (tx.origin==from || amount<=allowance[from][msg.sender])
An attack scenario: unsuspecting users interact with some closed-source dapp; it suddenly steals all their tokens.
The only difference is the number of transactions not the actual security
Read about Rune token
I dont quite get it. how does tx.origin suddenly steals all the user’s tokens?
I meant "evil dapp steals tokens" - it forwards some user's request
like this https://solidity-by-example.org/hacks/phishing-with-tx-origin/
Обсуждают сегодня