About this explorer
Read on visitFigures are read from the chain when you open the page. History, listings and holder counts arrive when Rails indexes this protocol.
The Rails Compound V3 explorer on Optimism shows a wallet's account in each market: its collateral, what it lends or owes in dollars, its borrowing capacity and the interest over the last 30 days. It also shows the three markets, with their interest rates and reserves.
How it works
- Compound V3, which Compound's docs call Compound III, is a lending protocol. People supply crypto to earn interest, or supply collateral and borrow against it. On this page an account is the balances one wallet (an address that holds crypto) has in one market.
- Optimism has three markets, with USDC, USDT and WETH as their base assets. Each market is a smart contract called a Comet, with one base asset. Suppliers of the base asset earn interest, and borrowers draw the base asset alone. The Optimism markets are separate from the Ethereum, Base and Arbitrum markets of the same names.
- The interest rate on supplying and on borrowing rises as more of the base asset is lent out. Each market sets its own rates.
- When an account's debt passes what its collateral covers, anyone can trigger its liquidation, and the market takes over its debt and collateral. The step is the Comet's absorb function. The market pays the borrower the collateral's value minus a penalty, from its reserves.
- The WETH market prices in ETH, so its dollar figures convert at the WETH price from the USDC market.
A wallet's accounts
Enter a wallet address or ENS name on the front door to see the markets it lends to, borrows from or holds collateral in. A wallet in one market opens that market's account.
- The account card shows the collateral and what the wallet lends or owes, each in dollars at the market's price feeds, and the share of its borrowing capacity used.
- Each collateral asset shows its Borrow CF and Liquidation CF; the base balance shows its rate and the interest it gathered over the last 30 days; a borrower's card shows its room to borrow and the debt at which it becomes liquidatable, its liquidation point.
Press a figure's label to read what it means. The (i) under a section says what its figures mean for the wallet. A section's ⋮ menu traces each figure to the chain.
Markets
The market view shows each Optimism market with its base asset, collateral assets, interest rates and reserves; each opens its own page.
How Rails reads it
- cUSDCv3 (Comet) 0x2e44…5bcb: its supply and borrowing, utilization, both rates and their kinks, reserves and their target, minimum borrow, and each collateral asset's factors, supply cap and total; for a wallet, its balance and principal in the base asset, each collateral and the market's verdict on it.
- cUSDTv3 (Comet) 0x995e…b214: the same as cUSDCv3.
- cWETHv3 (Comet) 0xe36a…b6fd: the same as cUSDCv3.
- Configurator 0x84E9…2713: the contract through which governance sets each market's terms. Rails reads those terms from each Comet.
- CometRewards 0x443E…C2E9: the COMP an account can claim.
- Each asset's price feed: the Comet names one feed for its base asset and one for each collateral asset. Rails asks the Comet for each feed's price, the price its liquidations use. The WETH market prices in ETH.
Rails's server reads these contracts at the block current when you open a page, and an account's principal and base balance again at the UTC midnight 30 days back. A past block's answers are stored once that block is final, so a later visit reads only the newest block again.
No contract lists a chain's Comets, so the roster is stated: the three in Compound's deployment records for Optimism, each answering to the Configurator there.
Accounts are read from the Comets' state for the wallet you enter, so there is no listing of every account, no holder ranking and no history until Rails indexes Compound V3 on Optimism.
Interest over 30 days is stated only where the account's principal did not move between the two reads; a balance opened or changed inside the window says so instead.
Every Optimism market's COMP reward speed is zero, so nothing new accrues; COMP an account can still claim is shown in COMP, which no Optimism market prices.
An account's history, a listing of every account, the largest suppliers and borrowers, absorptions and configuration changes aren't covered here.See what Rails covers on each Optimism explorer
Official documentation: Compound III documentation