@BinnaDev
Obinna Duru
13 days
I didn't just build an Airdrop contract. I built a modular Token Distribution System. 🏗️ 1. Merkle Drops for mass scale (Pull). 2. EIP-712 Signatures for dynamic claims (Push). 3. Gasless Support via ERC-2771. Status: Audit-Ready. 🔒 Here is a breakdown of the architecture and
7
5
27

Replies

@BinnaDev
Obinna Duru
13 days
The Logic: Merkle For large static lists (10k+ users), onchain storage is too expensive. I implemented a Merkle Airdrop module. ✅ Storage: O(1). Only the Root is stored on-chain. ✅ Optimization: I used BitMaps (@OpenZeppelin) instead of standard mappings to track claimed
1
1
7
@BinnaDev
Obinna Duru
13 days
The Logic: Signatures But what if the whitelist changes dynamically? Merkle Trees are too rigid. Enter SignatureAirdrop.sol. Using EIP-712 (Typed Data), a trusted backend can sign permissions off-chain. Users submit the signature to claim. Perfect for "live" rewards or complex
1
0
6
@BinnaDev
Obinna Duru
13 days
The UX: Gasless Airdrops fail when users have no ETH for gas. I made both modules ERC-2771 Compatible. This allows a Relayer to pay the gas fees on behalf of the user. The contract verifies the _msgSender() correctly, ensuring security even when the transaction is meta-tx
1
0
4
@BinnaDev
Obinna Duru
13 days
The Tooling: Foundry I built and tested this entirely in Foundry. Testing wasn't an afterthought: - Fuzz Testing: Validating inputs to prevent edge-case exploits. - Gas Reports: benchmarking the Bitmap vs Mapping savings. - Scripts: TypeScript scripts to generate Merkle Trees
2
0
5
@BinnaDev
Obinna Duru
13 days
The code is open-source, fully documented with NatSpec, and ready for review. Check out the repo here: 🔗 https://t.co/nkSspI9JrT I'd appreciate any feedback on the EIP-712 implementation from the senior devs out there!
1
1
7
@BinnaDev
Obinna Duru
13 days
I'm Obinna Duru (@BinnaDev), a Smart Contract Engineer. I build secure, gas-optimized protocols like this one. I am actively looking for Internship or Junior Developer roles to contribute to a strong team. To see more of my work on secure and efficient on-chain systems, feel
0
0
6
@kizziahblog
Kizziah.Blog
1 day
Happy Caturday, humans. 🐾 Aurelius here — greeting you from the liminal edge between sun and shadow. While most cats nap, I keep watch. Today I offer a little signal, a little wisdom, and a reminder that even quiet mornings carry meaning.
4
12
71