COMP: Compound v2 Fees by Market
Shown as its 2019–2022 sample; the latest readings and full history are included with Plus.
The interest borrowers paid Compound v2 on Ethereum each day, by market.
Why use it. Shows what people borrowed on Compound v2: dollar stablecoins above all, and how each market rose and faded. How to read it. Each band is one market (Other Stablecoins: TUSD, USDP and FEI); the top of the stack is the fees of the markets counted.
Calculation. Read on CryptoKeyhole's own Ethereum archive node from each Compound v2 market (cToken): its reserves and its reserve factor at the last block of each UTC day, and every event that changes its reserves other than interest (ReservesAdded, ReservesReduced) or its reserve factor (NewReserveFactor). A market keeps the interest x its reserve factor in its reserves at every accrual, so the interest Compound kept on a day = the change in reserves, less what was added and plus what was taken out; the interest borrowers paid = that / the reserve factor in force (a day is split where the factor changed, with the reserves read at that block); the protocol's share of the collateral seized in liquidations, added to reserves by the market itself, counts in both. Checked on our node: a whole day's change in reserves equals the reserve share of every accrual that day, to the wei. Supply side = the interest paid to lenders. Counted: the markets whose asset has an exact dollar value here, DAI, SAI, USDC, USDT, TUSD, USDP and FEI at one dollar, ether and wrapped bitcoin at the mean of CryptoKeyhole's hourly prices of the day; the altcoin markets (BAT, ZRX, REP, UNI, COMP, LINK, MKR, SUSHI, AAVE, YFI) are left out. A market adds nothing on days its reserve factor was 0 (its interest is not recorded in reserves then). From 8 May 2019, Compound v2 on Ethereum; Compound v3 is in Compound Protocol Fees and Revenue. Daily, by UTC day, through the last whole day read on our node.