Skip to main content
Try out the RareSkills ZK AI Tutor!

DeFi

Browse all DeFi articles.

9 min read

Uniswap V2 Architecture: An Introduction to Automated Market Makers

Uniswap is a DeFi app that enables traders to swap one token for another in a trustless manner.

Last updated onNov 12, 2026
Read Article

9 min read

Uniswap v2 router code walkthrough

Router02 is Router01 with additional functions for fee on transfer tokens.

Last updated onNov 12, 2026
Read Article

8 min read

Breaking Down the Uniswap V2 Swap Function

Uniswap V2’s swap function is cleverly designed, but many devs find its logic counterintuitive the first time they encounter it.

Last updated onNov 12, 2026
Read Article

7 min read

The interest rate model of Aave V3 and Compound V2

Interest rates in TradFi (traditional finance) are largely determined by central banks and influenced by market factors.

Last updated onNov 12, 2026
Read Article

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.

Last updated onNov 12, 2026
Read Article

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.

Last updated onNov 12, 2026
Read Article

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.

Last updated onNov 12, 2026
Read Article

12 min read

ERC4626 Interface Explained

ERC4626 is a tokenized vault standard that uses ERC20 tokens to represent shares of some other asset.

Last updated onNov 12, 2026
Read Article

8 min read

Governance Contract in Solidity

The pattern of governance many DeFi applications follows is heavily inspired by Compound Finance’s implementation.

Last updated onNov 12, 2026
Read Article

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.

Last updated onNov 12, 2026
Read Article

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…

Last updated onNov 12, 2026
Read Article

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.

Last updated onNov 12, 2026
Read Article