
Ethereum Virtual Machinist | @developer_dao #359
π¬π§
Joined February 2017
- Tweets422
- Following980
- Followers258
- Likes692
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.
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! π
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
Sparx π¦π retweeted
Super-shadowy developers, @Extropy are running smart contract auditing course on 8 & 9th July.
It's only $399!!
Sparx π¦π retweeted
Audit competitions offer big bounties, our latest blog post provides tips to help you win
mirror.xyz/0x2a614d42323681Eβ¦
Sparx π¦π retweeted
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β¦
Sparx π¦π retweeted
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
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. π
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. π
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
Sparx π¦π retweeted
I made this binary fundamentals chart for my students.
You can grab a PDF here:
terathon.com/binary_fund.pdf
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 β
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/β¦
Sparx π¦π retweeted
"Spend your time doing only what you can uniquely do."
@naval
Sparx π¦π retweeted
Wondering what and why Noir? Here's a 20-min primer:
(Thank you @ETHGlobal for hosting us!)
youtube.com/watch?v=wYqqXas8β¦
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...
Sparx π¦π retweeted
Curious what am I but haaattteeeeee reading words? π
Worry not! We have great Noir talks & workshops π₯
π§΅π
Sparx π¦π retweeted
"Any society that has a blockchain-enabled internet will be decades ahead of one that doesnβt."
@naval



























