The most effective software engineers I know always had a tendency to revert to writing "C" style code.
Nothing seems to come close in terms of readability / maintainability.
Anyone else not going to sleep tonight because Ben's $PSYOP token contract is adding an additional unnecessary ~2,000 gas to every single token transfer?
Here's his contract:
https://t.co/yuRNwW8FIU
And here's a quick side by side of his function vs. a better one (simplified):
Seeing a potential re-entrancy exploit with the @SteadyStackNFT contract.
Looks like anyone on the goldlist can re-use their signatures to mint as many NFTs as they want.
There's no supply check on this function so someone could mint out the remaining supply (limited by gas).
If anyone knows the people that run the @WaltsVault_NFT project, I have a list of improvements they should make to their smart contract.
I don't normally do public audits before a mint, but the code is already live so why not 🫡
🪂 Sending Tokens Efficiently 🪂
The bull market is coming and gas prices are pumping.
You shouldn’t be over paying for gas and spending more than you need to, costing yourself thousands of dollars.
Here’s a tool that can you save you money when sending tokens in bulk.
1/16
Allow me to unveil the enigmatic concept of read-only-reentrancy.
Recently, a new exploit utilizing this vulnerability came to light, spurring me to dedicate the last 48 hours to curating an enlightening 🧵 for the benefit of the entire community to grasp its nuances.
Want to find your first high severity issue on @code4rena to get +backstage role? This is one of the most common and easy to spot bug on c4.
What is the problem here?
📝Tips for smart contract auditing approach✅
Part 1 of 3 posts:
1/ Read the project's docs, specs, and whitepaper to understand what the smart contracts are meant to do.