
Compound · Reads onchain state
Reads a Compound market's utilization and its supply and borrow rates as per-second rates and APYs. Comet returns utilization and the per-second supply and borrow rates at 18 decimals, and the action compounds each rate over a year on-chain into supplyApy and borrowApy. Reach for it to choose between markets by yield, to gate a supply on a minimum APY, or to compare the borrow APY against the yield a borrowed asset will earn elsewhere before opening a loop.
On other protocols · 4