Browse all Cairo Smart Contracts articles.

Solana logs, "events," and transaction history !Solana logs, "events," and transaction history Solana programs can emit events similar to how Ethereum emits events, though there are some differences...
Last updated on Aug 30, 2024
9 min read
Solana Sysvars Explained !Solana Sysvars In Solana, sysvars are read-only system accounts that give Solana programs access to the blockchain state as well as network information. They are similar to...
Last updated on Aug 28, 2024
Over 150 interview questions for Ethereum Developers All of these questions can be answered in three sentences or less. Easy What is the difference between private, internal, public, and external...
Last updated on Oct 29, 2025
The initializable smart contract design pattern Initializers are how upgradeable contracts achieve the behavior of a constructor. When deploying contracts, it's common to call a constructor to...
Last updated on Oct 22, 2025
46 min read
Smart Contract Security !smart contract security This article serves as a mini course on smart contract security and provides an extensive list of the issues and vulnerabilities that tend to recur in...
Last updated on Oct 29, 2025
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. When we check the...
Last updated on Sep 29, 2025
Understanding Collateral, Liquidations, and Reserves in Compound V3 In this chapter we will examine the following topics about Compound V3: collateral valuation absorbing insufficiently...
Last updated on Sep 24, 2025
The Architecture of the Compound V3 Smart Contract Introduction and prerequisites Compound is one of the most significant lending protocols in DeFi, having inspired the design of nearly every lending...
Last updated on Oct 8, 2025
DeFi Interest Rate Indexes: Principal value and Present Value in Compound V3 The intuitive way to track lender deposits is to record the amount of USDC they deposited and the time they deposited....
Last updated on Sep 24, 2025
Three ways to detect if an address is a smart contract This article describes three methods in Solidity for determining if an address is a smart contract: Check if . This is not a recommended method,...
Last updated on Oct 29, 2025
Viem React Js Example: Transfer, Mint, and View Blockchain State In this tutorial, we’ll build a fully functional Dapp with the Viem typescript library + React (Next.js). We’ll cover the necessary...
Last updated on Sep 26, 2024
Wagmi + ReactJS Example: Transfer Crypto and Mint an NFT In this tutorial, we'll learn how to build a Web3 Dapp (Decentralized Application) that connects to your crypto wallet, allowing you to...
Last updated on Oct 1, 2024