Blog
The technical content top engineers rely on to level up.
12 min read
The initializable smart contract design pattern
Initializers are how upgradeable contracts achieve the behavior of a constructor.
11 min read
ERC-7201 Storage Namespaces Explained
ERC-7201 (formerly EIP-7201) is a standard for grouping storage variables together by a common identifier called a namespace, and also to document the…
11 min read
Fixed Point Arithmetic in Solidity (Using Solady, Solmate, and ABDK as Examples)
A fixed-point number is an integer that stores only the numerator of a fraction — while the denominator is implied.
9 min read
The Transparent Upgradeable Proxy Pattern Explained in Detail
The Transparent Upgradeable Proxy is a design pattern for upgrading a proxy while eliminating the possibility of a function selector clash.
21 min read
Understanding ABI encoding for function calls
ABI encoding is the data format used for making function calls to smart contracts.
2 min read
noDelegateCall Explained
The noDelegateCall modifier prevents delegatecall from being sent to a contract.
4 min read
Hacking Underconstrained Circom Circuits With Fake Proofs
The <-- operator in Circom can be dangerous because it assigns values to signals but does not constrain them.
18 min read
Delegatecall: The Detailed and Animated Guide
This article explains how delegatecall works in detail. The Ethereum Virtual Machine (EVM) offers four opcodes for making calls between contracts.
53 min read
Solidity Gas Optimization: 80+ Tips and Tricks
80+ ways to cut gas costs in Solidity, from avoiding zero-to-one storage writes and packing variables to calldata and assembly tricks, plus tricks to avoid.
46 min read
Smart Contract Security: Common Solidity Vulnerabilities
A reference to the vulnerabilities that keep recurring in Solidity contracts, from reentrancy and access control to oracle manipulation and flash loans.
11 min read
Understanding Collateral, Liquidations, and Reserves in Compound V3
In this chapter we will examine the following topics about Compound V3.
6 min read
Compound V3 Interest Per Second
The Compound V3 protocol measures interest on the scale of seconds. The Compound V3 frontend scales the number up to years for human friendliness.