Sparx πŸ¦‡πŸ”Š (@operationcodes) header
Sparx πŸ¦‡πŸ”Š (@operationcodes) profile picture

Ethereum Virtual Machinist | @developer_dao #359

πŸ‡¬πŸ‡§
Joined February 2017
Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)Photo by Sparx πŸ¦‡πŸ”Š (@operationcodes)
Sparx πŸ¦‡πŸ”Š retweeted
I am back from my break, which means that I am looking for FT opportunities for frontend/TypeScript roles in web3. Your vouches, RTs, or any leads are appreciated. DMs open! Portfolio link is in the next tweet.
18
32
6
102
25,357
Sparx πŸ¦‡πŸ”Š retweeted
Im still looking for devrel opportunities if anyone has one or knows of one. DM me and I’ll send you my resume and some resources. I’d really love to be back in the community, building and teaching! πŸ™
10
31
6
60
11,511
Sparx πŸ¦‡πŸ”Š retweeted
excited to announce we've added a gas optimization bounty ($25k to start) for our contracts! thirdweb.com/open-source lots up for grab: github.com/thirdweb-dev/cont…
Let's make a deal... I'll stop dragging inefficient smart contracts publicly on my Twitter when people stop writing contracts like this: Let's take a look at an airdrop contract written by a company whose name resembles TurdWeb. Their contract actually allows you to airdrop tokens in 2 different ways. One is egregiously inefficient, and the other one is thankfully slightly less inefficient. ---------- I'll go over the worse option first: First they make you PAY to store an individual struct on chain for EVERY recipient of the airdrop... why? Next, you'd call this function to process the airdrop for the recipients that you added above: Wait... zoom in! ENHANCE! DO YOU SEE THAT? They're emitting an EXTRA event in every iteration of the loop. Surely that's not a very gas efficiency mindful decision... ---------- Okay, just so i'm not only dragging them, let's look at the more efficient option here: At least with this option you don't have to spend a wild amount of gas to store all of the recipients first. You can simply pass in the airdrop contents directly. Definitely the more IDEAL option if you HAVE to use this contract for whatever reason. The unfortunate thing is, this function really wouldn't be THAT bad, however they chose to put the nail in the coffin again by emitting another silly little event in every iteration of the loop. ---------- I just want to wrap up here by saying that my intentions with these types of breakdowns are not to hurt the feelings of the developers... it wouldn't be fun to write bland reports with no jokes or satire... come on... I do this to educate and show developers the dos and don'ts of efficient smart contract development. At the end of the day, I want everyone to write gas efficient code. Gas Bad Milady Good
3
1
2
28
2,733
Sparx πŸ¦‡πŸ”Š retweeted
Super-shadowy developers, @Extropy are running smart contract auditing course on 8 & 9th July. It's only $399!!
2
2
385
GM! I made a list of 100 auditors, bug bounty hunters and πŸ₯· security ninjas!🀯avatar stat: Pepe 1%, anime 7%, real faces 16%! Please subscribe, retweet if you find it helpful and comment/tag whom I should add - I will do it! Let's grow OUR community! nitter.gq/i/lists/15855484889973…
5
10
3
43
6,282
this Ramadan my friends and I are trying to feed 10,000 people there are a few ways to help 1. every retweet = 2 people fed 2. every 10 likes = 1 person fed 3. every $1 donated = 1 person fed for every dollar donated @fdotinc will match up to $5k
34
258
13
576
69,159
Sparx πŸ¦‡πŸ”Š retweeted
The popular DeFi Lending platform Euler Finance was exploited today for losses of almost $200M. The attacker used over 20 different contract addresses in order to take a variety of crypto-assets from Euler. Let's take a look at where these assets are now. πŸ‘‡
2
32
6
140
31,008
Sparx πŸ¦‡πŸ”Š retweeted
embrace for a lot of hacks, lots of places have dai/usdc price hardcoded
21
166
39
808
232,588
Sparx πŸ¦‡πŸ”Š retweeted
Ok @gashawkio is legit! Did a transfer for a test and it saved me 43% on gas fees on mainnet πŸ”₯. Doing some claims I've been lagging on to to test more. Video incoming soon enough, it also works for deploying contracts and a flashbot support. πŸ‘€
8
7
1
29
2,508
Sparx πŸ¦‡πŸ”Š retweeted
Few days ago i tweeted about the internals of Geth. @noxx3xxon suggested me to do a breakdown of storage vs memory so here it goes. A thread
3
33
4
126
Sparx πŸ¦‡πŸ”Š retweeted
I made this binary fundamentals chart for my students. You can grab a PDF here: terathon.com/binary_fund.pdf
47
694
28
3,403
294,578
Sparx πŸ¦‡πŸ”Š retweeted
πŸ€“ ATTN ALL Ethereum developers! You have 20 testnet ETH to claim if you've EVER deployed a smart-contract ⛓️ πŸ‘‡ earni.fi tells you for free βœ…
2
13
1
63
8,267
Sparx πŸ¦‡πŸ”Š retweeted
I’ve put together a deep dive on How Proof of Stake on Ethereum works. - Epochs & Slots, - Voting Protocols - Inactivity Leak, - Does it meaningfully replace PoW? - And much much more! An accumulation of 3-4 months of deep diving. Hope you enjoy it! stonecoldpat.substack.com/p/…
9
90
9
303
46,375
Sparx πŸ¦‡πŸ”Š retweeted
"Spend your time doing only what you can uniquely do." @naval
9
127
3
1,100
79,367
Sparx πŸ¦‡πŸ”Š retweeted
One of the hardest things for new auditors is getting your head around a code base. I remember feeling like I was aimlessly jumping in circles. Based on the DMs I've been getting, seems like this is a common experience. Here's the process I now use for every audit...
30
141
11
588
105,655
Sparx πŸ¦‡πŸ”Š retweeted
Curious what am I but haaattteeeeee reading words? πŸ‘€ Worry not! We have great Noir talks & workshops πŸŽ₯ πŸ§΅πŸ‘‡
1
3
5
466
Sparx πŸ¦‡πŸ”Š retweeted
"Any society that has a blockchain-enabled internet will be decades ahead of one that doesn’t." @naval
16
37
3
321
40,708