shafu Profile Banner
shafu Profile
shafu

@shafu0x

1,969
Followers
376
Following
60
Media
1,525
Statuses

Tech Lead @0xDYAD | Host of @the_bytecode

Joined July 2019
Don't wanna be here? Send us removal request.
@shafu0x
shafu
4 years
Learn the following: - Read - Write - Basic Mathematics - Computer Programming and you are set for life. - @naval
29
76
776
@shafu0x
shafu
6 months
Happy to announce the "EVM from scratch" book. Still a work in progress but I want to write it in public. It is open-source so feel free to create an Issue or Pull Request.
Tweet media one
22
126
680
@shafu0x
shafu
1 year
Anyone knows a good designer? I'm looking for a logo and thumbnail. Web3 affinity would be great.
120
0
126
@shafu0x
shafu
4 months
Our protocol is easy to understand. Our protocol:
Tweet media one
4
5
149
@shafu0x
shafu
1 year
Foundry projects I use as a reference: - sablier v2 - maple finance - solmate - art gobblers Any other recommendations?
10
15
142
@shafu0x
shafu
4 months
Every excellent Solidity dev is simultaneously a security researcher.
7
17
107
@shafu0x
shafu
2 months
A nerd with social skills is unstoppable.
6
5
90
@shafu0x
shafu
3 months
Developers know the risk.
Tweet media one
11
6
85
@shafu0x
shafu
13 days
It took 2 years of building 6 re-writes 2 soft-launches And a bear market to get where we are @0xDYAD
Tweet media one
8
6
81
@shafu0x
shafu
8 months
Complexity in software is bad. Complexity in smart contracts is terrible.
7
5
77
@shafu0x
shafu
3 months
I don't trust code to hold my funds. I'm an EOA maxi.
42
1
79
@shafu0x
shafu
1 year
Every contract is "open-source" if you can read assembly.
8
4
72
@shafu0x
shafu
13 days
Incredible feeling to have 10 Million dollars in code you wrote. If you are using @0xDYAD and have any suggestion on how to improve things please let us know. Your feedback is super valuable.
Tweet media one
9
7
74
@shafu0x
shafu
1 year
foundry will save this industry billions of dollars
3
5
67
@shafu0x
shafu
5 months
Modifiers completely change how you can write tests. This is beautiful imo.
Tweet media one
13
1
66
@shafu0x
shafu
2 years
is this naming scheme really a good idea?
Tweet media one
18
0
68
@shafu0x
shafu
3 months
Solo Audit ✅ @code4rena Audit ✅ @ShieldifySec Audit ✅ Excited to deploy @0xDYAD v2 very soon
6
9
66
@shafu0x
shafu
4 months
Lines of code is not a flex. Number of audits is not a flex. Complexity is not a flex.
7
2
62
@shafu0x
shafu
6 months
Good friends of mine are hiring smart contract devs. Very interesting technical problems. Dm me if you are interested.
18
6
61
@shafu0x
shafu
4 months
Hackers are the auditors of auditors.
5
1
61
@shafu0x
shafu
5 months
One genius Auditor is worth more than a legion of average Auditors.
12
1
59
@shafu0x
shafu
3 months
The only smart contract I would trust with everything I own is WETH on Ethereum. No other network. No other contract.
11
0
59
@shafu0x
shafu
5 months
This is going to be fun. If you want to break my code and win some money check it out. Very soon ™️
Tweet media one
5
7
60
@shafu0x
shafu
1 year
Quick prototype I build for all @huff_language devs out there. Automatically generate the stack comments for your macros. Something that could be integrated into an editor later on.
2
8
60
@shafu0x
shafu
5 months
The best Smart Contract devs I know have no problem jumping between Solidity and Assembly.
5
0
53
@shafu0x
shafu
1 year
Python forces you to dislike for-loops. Solidity will teach you to hate them.
5
3
52
@shafu0x
shafu
3 months
You can instantly see when writing smart contracts becomes art.
Tweet media one
4
3
50
@shafu0x
shafu
1 year
Anyone feel like there are more people going into contract auditing than writing them? Don't know if thats a good or bad thing...
13
2
47
@shafu0x
shafu
1 month
Smart contracts take years to develop and seconds to deploy, but their impact can last for decades.
3
8
47
@shafu0x
shafu
26 days
Learn to build. Learn to audit. If you can do both, you will be unstoppable.
1
5
45
@shafu0x
shafu
4 months
Building Smart Contracts is an endless survival game. lvl 1: compiler lvl 2: chat GPT lvl 3: you lvl 4: tests lvl 5: auditors lvl 6: hackers <-- final boss You can never be sure that you won Level 6.
4
4
46
@shafu0x
shafu
5 months
ideal web3 startup: 1 repo open-source perfect test coverage tokenized ownership onchain bank account onchain revenue real-time reports
11
1
46
@shafu0x
shafu
1 year
Something REAAALLY funny just happened to me. I was checking if I was eligible for the $ARB airdrop. I found this random address in my wallet with some Arbitrum interactions. And YES it turned out to be eligible. The thing is I don't remember using it at all!
Tweet media one
6
4
39
@shafu0x
shafu
4 months
You should feel very lucky if someone looks at your code. Build in public!
5
3
44
@shafu0x
shafu
4 months
Who audits the auditor?
24
7
44
@shafu0x
shafu
3 months
Do not waste your time trading if you are a good builder.
2
2
40
@shafu0x
shafu
1 month
The contracts should be simple. The tests should be complex.
2
4
44
@shafu0x
shafu
3 months
Auditing is not scalable.
14
0
42
@shafu0x
shafu
1 month
We are looking for a solo auditor that is an expert in lending protocols. Dm me directly if you think you are a good fit.
4
5
42
@shafu0x
shafu
7 months
Auditing is highly non-linear. The top 20% make all the money. You will never hear about the bottom 80%.
7
1
39
@shafu0x
shafu
1 year
Any animators here that want to work on a idea I have around visualizing Ethereum state transitions? Dms are open!
12
0
37
@shafu0x
shafu
2 years
@nonfungibletc @kelvinfichter @BeanstalkFarms easily avoidable by preventing the voting AND execution of the proposal inside one and the same block. vote -> than wait at least one block -> execute
2
1
38
@shafu0x
shafu
6 months
I did two hackathons in a row now and I didn’t see one beginner using Foundry. Is Hardhat more beginner friendly because of JS or are we just bad at marketing?
@shafu0x
shafu
6 months
I converted at least 4 people from Hardhat to Foundry. I would call this a successful #ETHOxford hackathon.
5
2
30
24
1
39
@shafu0x
shafu
4 months
Coding interviews are too abstract. I only hire someone after a paid 2-day internship.
5
1
40
@shafu0x
shafu
4 months
Some thoughts about Auditing: - one great auditor is worth a legion of average auditors - contests have a big overhead - audit before writing code if you can - solo audits do not have the "prestige" - auditing your deployment script is a must - solo audits are underrated
4
2
35
@shafu0x
shafu
4 months
Auditing is not a get-rich-quick scheme.
6
3
36
@shafu0x
shafu
4 months
The Solidity compiler is not a black box. Learn how it works to write better code.
2
1
37
@shafu0x
shafu
9 months
Yes, Foundry is awesome. But, re-building everything in Solidity can not be the solution. We need a better interface between Solidity and a general purpose library like Python. ffi is not good enough.
15
0
34
@shafu0x
shafu
1 month
Spending a lot of time in a third-world country there exists a "dollarized" class. This class lives in closed off compounds, never uses public transportation and very rarely interact with the other classes. As the local currency loses value compared to the dollar this
Tweet media one
1
5
35
@shafu0x
shafu
6 months
The real status symbol is the amount of leading zeros in your address.
4
3
32
@shafu0x
shafu
18 days
A great engineer and good friend of mine is looking for a freelance / part-time position as a smart contract dev. Who is hiring?
4
8
33
@shafu0x
shafu
4 years
@dare2bharat @velumania @naval @Sentdex is great! Another great @naval quote: The resources we have are abundant. The willingness to learn is rare. I wish you the best on your journey. It is worth it!
0
2
32
@shafu0x
shafu
1 month
NFTs as art are overrated. NFTs as an abstraction for financial assets are underrated.
7
2
32
@shafu0x
shafu
10 days
We got where we are at @0xDYAD without having a single scheduled meeting.
4
0
33
@shafu0x
shafu
5 months
Do you guys experience "code blindness"? Happens to me after looking at the same code for too long. Makes one miss the simplest mistakes.
11
0
30
@shafu0x
shafu
6 months
I converted at least 4 people from Hardhat to Foundry. I would call this a successful #ETHOxford hackathon.
5
2
30
@shafu0x
shafu
3 months
Maximize your iteration speed. You need to fail quickly.
2
2
29
@shafu0x
shafu
6 months
Happy cancun day to those who celebrate! In honor of this day, I have added a new section for tstore and tload in the "EVM from scratch" book.
0
4
30
@shafu0x
shafu
1 year
I added a couple of new features to the @huff_language stack generator: - end comment for STOP opcode - multiple opcodes per line (as requested by @plotchy ) - add takes input parameters to the start of the stack
Tweet media one
1
1
29
@shafu0x
shafu
4 months
The Zen of Solidity Security comes first. Gas is bad. Standards are good. Simple is better than complex. Flat is better than nested. Readability counts. Beautiful is better than ugly.
3
5
28
@shafu0x
shafu
10 months
Can anyone recommend a solo auditor? We are looking for someone to audit the @0xDYAD contracts.
25
3
28
@shafu0x
shafu
3 months
You read code way more than you write it. This is why beautiful code is not a nice-to-have but a necessity.
6
2
27
@shafu0x
shafu
4 months
Crypto is the only industry that makes nerds rich.
2
1
27
@shafu0x
shafu
2 years
Wow, @MeirBank , @NaimAshhab and I just won $1000 at @EFDevconnect from @Superfluid_HQ for building the Multi Bridge: What an awesome weekend!
2
8
25
@shafu0x
shafu
3 months
If you don't understand a library look at its code. The code is the best documentation.
2
3
23
@shafu0x
shafu
1 month
Stop looking at prices. Start looking at code.
2
2
25
@shafu0x
shafu
2 months
I've built a couple of indexers from scratch in the past. ponder makes this 10x easier. Check out the new Notes table for @0xDYAD
Tweet media one
1
4
26
@shafu0x
shafu
9 months
Github is the best proof-of-skill we have. If a company asks for more you don't want to work there.
1
2
25
@shafu0x
shafu
1 month
It is easier to become a SR after being a dev.
0
0
23
@shafu0x
shafu
2 years
@optimizoor it gets better flip, flop, slip, frob, flux... how should anyone understand this?
Tweet media one
3
0
24
@shafu0x
shafu
3 months
Smart contracts are perfect for learning about exploits. - isolated environment - open state - immense consequences
2
0
23
@shafu0x
shafu
30 days
Auditing can not be automated.
4
0
23
@shafu0x
shafu
9 months
I highly respect protocols that can be explained in a single sentence: - @mean_fi - @Sablier - @Uniswap - @SetProtocol - @0xDYAD (Soon™) * some of them (in no particular order)
2
3
23
@shafu0x
shafu
4 months
Don't trust a demo, paper or website. Only trust the code!
1
3
24
@shafu0x
shafu
4 months
We are looking for a solo auditor. Dm me if you want to work with me on auditing a small @0xDYAD refactor.
0
0
24
@shafu0x
shafu
9 months
Nothing like the thrill of deploying on Mainnet.
1
2
22
@shafu0x
shafu
1 year
Quick code walkthrough looking at huff-stacker. A tool that automatically generates stack comments for @huff_language macros.
1
4
20
@shafu0x
shafu
2 years
pytorch to tensorflow is like foundry to hardhat
2
0
21
@shafu0x
shafu
28 days
Code what you love until you love to code.
0
4
19
@shafu0x
shafu
27 days
Which protocol you work on is far more important than how hard you work. With infinite leverage, judgement becomes the ultimate skill.
4
4
21
@shafu0x
shafu
6 months
Rising TVL is a double-edged sword for a smart contract dev. You are happy people use your code, but sleep just got a little harder, thinking about potential exploits. 1 Million is still a great milestone though. @0xDYAD
Tweet media one
2
1
21
@shafu0x
shafu
3 months
web2: move fast and break things web3: move fast and get hacked
2
1
21
@shafu0x
shafu
4 months
If you need to prepare for an interview, it is not the optimal job for you.
4
0
19
@shafu0x
shafu
7 months
Multiple Inheritance makes a codebase an order of magnitude more complex.
Tweet media one
6
0
20
@shafu0x
shafu
3 months
The best auditors can ask for millions because they are securing billions.
0
1
20
@shafu0x
shafu
1 month
Don't talk about intentions. Talk about protocol design.
2
2
20
@shafu0x
shafu
12 days
Airdrops are the greatest marketing tool ever invented.
7
1
19
@shafu0x
shafu
4 months
"Overnight success" is hard work paying off in a non-linear field.
3
0
20
@shafu0x
shafu
1 year
People used this address so many times on Arbitrum that it actually became eligible for the Airdrop.I'm already looking forward to the gas war that will happen on launch date to claim these 3250 $ARB tokens. Arbitrum apparently didn't filter the eligible addresses at all.
3
0
15
@shafu0x
shafu
5 months
Cryptos PMF are Stablecoins.
4
2
19
@shafu0x
shafu
3 months
Before writing Solidity, implement your math in Excel.
2
1
18
@shafu0x
shafu
6 months
Smart contract complexity is NOT a status symbol.
4
2
19
@shafu0x
shafu
4 months
We need an ELO score for auditors.
3
1
19
@shafu0x
shafu
4 months
The goal of the Solidity compiler is to make inline-assembly unnecessary.
2
1
18
@shafu0x
shafu
3 months
Working with friends turns work into play.
1
1
18