Blog
The technical content top engineers rely on to level up.
6 min read
EIP 1967 Storage Slots for Proxies
EIP 1967 is a standard for where to store information that proxy contracts need to execute.
12 min read
The staking algorithm of SushiSwap MasterChef and Synthetix
The MasterChef and Synthetix staking algorithms distribute a fixed reward pool among stakers according to their time-weighted contributions to a pool.
5 min read
Second Preimage Attack on Merkle Trees and How to Prevent It
A second preimage attack passes off an intermediate Merkle tree node as a leaf to forge a proof. See how it works with 64-byte leaves and how to prevent it.
4 min read
How Chainlink Price Feeds Work
Chainlink price oracles are smart contracts with public view functions that return the price of a particular asset denominated in USD.
8 min read
Layer 2 Calldata Gas Optimization
When developing applications on an L2, the majority of gas costs come from calldata. Therefore, gas optimization for L2 emphasizes minimizing that cost.
11 min read
DeFi Lending: Liquidations and Collateral
In TradFi, when someone defaults on a loan, the creditor has the right to seize assets or garnish wages.
6 min read
ERC20 Snapshot
ERC20 Snapshot solves the problem of double voting. If votes are weighed by the number of tokens someone holds, then a malicious actor can use their…
4 min read
Generate Ethereum Address from Private Key Python
An Ethereum address is the last 20 bytes of the keccak256 of the public key. The public key algorithm is secp256k1, the same used in Bitcoin.
7 min read
Solidity Gasleft
The purpose of this article is to describe the behavior of the Solidity gasleft() function and its uses.
12 min read
Ethereum smart contract creation code
This article explains what happens at the bytecode level when an Ethereum smart contract is constructed and how the constructor arguments are interpreted.
21 min read
Mastering Solidity: Master the Computer Science Fundamentals First
I'll spare you the traditional arguments for why you should study and practice what is considered "the fundamentals."
7 min read
What makes blockchain immutable?
Contrary to popular belief, blockchains are not immutable because of cryptography, but because of economic incentive.