Omsify (@0xOmsify) profile picture

building in the web3 /// Smart Contract Engineer /// evm gas optimizations enjoyer

Joined August 2023
Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)Photo by Omsify (@0xOmsify)
Fifth to solve the Paradigm AMM puzzle Let's go!
paradigm puzzle #1 AAMM: the AAMM Automated Market Maker problem statement in reply
8
430
What a college does to a man
2
229
Everyone is talking about vibe coding, but what about *vibe mathing*? I generated this animation fully in Python+Manim using Claude (details below) 👇
1
1
260
The animation was fully created with vibe-coding! I simply prompted Claude for the next steps and refinements. I didn't expect it to catch onto the topic and find an appropriate source so quickly!
1
138
Animations like this can help build stronger math intuition. What do you think about vibe-mathing?
1
88
You call yourself an auditor? Then answer this:
1
1
192
1980: "I bet in the future we will have flying cars!" 2024: Betting on Trump to win the presidential election on @Polymarket and hedging the risks by buying the "boden" memecoin on Solana The future of finance
3
220
Made a small library to efficiently use large amounts of bools in Solidity. If you ever had to store a lot of bools onchain and hated that Solidity uses 8 bits for each one of them, you might wanna check it out: github.com/Omsify/BetterBool… P.S.also features convenient bool matrices
1
2
172
Forgot to make the repo public, it is fixed now
101
I can vouch for this. The gas guide repo is a must-read. @beskay0x was an amazing mentor! Thank you beskay!
Sharing my @EthernautDAO gas mentorship repository github.com/beskay/gas-guide In this repo you'll find: - Intro to gas in Ethereum - Basic overview of the EVM - Collection of gas optimization patterns Thanks to @frenchkebab_eth & @0xOmsify for contributing and being my mentees!
1
1
184
Replying to @33audits
@solidityauditor process for auditing smart contracts. We will cover what to do before starting an audit, how to read the known issues, and how to find more leads using Discord. We will also discuss the importance of challenging developer assumptions. ☠️ youtube.com/watch?v=74OCMLom…
4
29
4
62
9,074
Demystifying Solady tricks. Day #5. "Function evaluation order" (SafeTransferLib.sol) A thread 👇🧵 (1/5)
1
1
6
373
So in our case first a token.transferFrom() call is performed. Then, the return data is verified: the sub context should either return nothing or true (1). 👇 (4/5)
1
123
If the call reverted or the returndata was wrong, the contract reverts. (not seen in the picture above) That's it for today! If you enjoyed reading this, consider liking this thread and following me for more threads like this one! ❤️ (5/5)
103
Replying to @0xOmsify
Some extra tidbits: - The `returndatacopy` revert trick will burn all gas, like the `invalid` opcode. So it’s only used in cases where 99.99% of cases will never revert. - Currently, the solidity compiler won’t inline functions containing `returndatacopy`. So if you want to use this trick efficiently, you will have to write the assembly directly where you need it. - There’s the alternative `mstore` at high memory location to revert with out-of-gas trick. But we can’t guarantee that Vitalik won’t remove memory expansion costs in the future. notes.ethereum.org/@vbuterin…
1
1
13
827