Blog
The technical content top engineers rely on to level up.
2 min read
Uint256 max value
But it's cleaner and safer to use type(uint256).max. A uintN means there are N bits that represent the number, and when all of them are set to 1, this is…
3 min read
Solidity test internal function
To test an internal Solidity function, create a child contract that inherits from the contract being tested, wrap the parent contract’s internal function…
4 min read
Convert gas to USD (Ethereum)
Understanding gas cost can be tricky because there are three components at play: the gas price, the price of ether, and the units of gas.
20 min read
Circom language tutorial with circomlib walkthrough
This tutorial introduces the Circom language and how to use it, along with common pitfalls.
5 min read
ZK-addition-dapp with Noir and Nextjs
We will demonstrate a step-by-step exploration of a basic zk-dapp designed for verifying additions.
11 min read
Foundry Unit Tests
This article will describe how to create unit tests in Solidity using Foundry.
4 min read
Smart contract creation cost
Smart contract creation cost can be anywhere from $10 to $2,000 assuming ETH costs between $1,500 to $2,000.
13 min read
Flash Loans and how to hack them: a walk through of ERC 3156
Flash loans are loans between smart contracts that must be repaid in the same transaction.
8 min read
Uniswap V2 Mint and Burn Functions Explained
The lifecycle of Uniswap V2 is someone mints LP tokens (supplies liquidity, i.e. tokens to the pool) for the first time, then a second depositor mints…
9 min read
How the TWAP Oracle in Uniswap v2 Works
Suppose we have 1 Ether and 2,000 USDC in a pool. This implies that the price of Ether is 2,000 USDC.
3 min read
Checklist for building a Uniswap V2 clone
It’s very educational to rebuild Uniswap v2 from scratch using modern Solidity (or Huff if you really want to do it in hard mode).
6 min read
Solidity Coding Standards
The purpose of this article is not to rehash the official Solidity Style Guide, which you should read.