
Compound V2: Fixed-Point Math
In this article we explain the fixed-point math behind Compound. Understanding this is a crucial stepping stone to understanding the rest of the calculations in the protocol. All the code reference...

In this article we explain the fixed-point math behind Compound. Understanding this is a crucial stepping stone to understanding the rest of the calculations in the protocol. All the code reference...

To build a lending protocol, you need a way to track how much debt each borrower owes as it accumulates over time. Compound tracks interest on a block-by-block basis, meaning debt accrues with each...

Compound lets users deposit tokens to earn yield. When you deposit, you receive a cToken in return that represents your position. For example, depositing USDC gives you cUSDC. You can think of a cT...

Why Compound V2 Compound V2 came out in 2019, so you might wonder why I’m writing about it now. In my opinion, it is the best starting point for going deeper into DeFi mechanics. It covers a wide ...