Takeaway of the story: Do not manually update the totalSupply or balanceOf mapping, but use the built-in transfer/transferFrom/mint/burn functions!
OZ ERC20's implementation declares those variables as private such that inheriting contracts cannot alter them accidentally.
I'd like to level up my reverse engineering and EVM skills and what's better than learning by doing... π€Anyone knows any interesting or intriguing MEV bots worth reverse engineering? π€π Lmk!
Announcing the DeFi Security Summit 2023 in Paris, France!
We're back with two full days of programming with top leaders & researchers in the DeFi security space, directly preceding @EthCC.
Learn more: https://t.co/U2KTLVvXsb
What you can expect π§΅π
The subtle, yet very important difference between EVM compatibility and EVM equivalence.. I'd reckon we will see these kind of vulnerabilities more and more in the future unfortunately..
A project on zkSync raised 921 ETH ($1.7M) in a token sale, but funds are stuck forever in the smart contract.
The transfer() function works on Ethereum and other EVM chains, but not on zkSync.