Get asset data

Get asset data on Aave

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Reads an Aave reserve's live rates and token addresses, with supply and borrow APYs. The pool's reserve data comes back whole: the current supply and variable borrow rates in ray, the last update timestamp, the aToken and variable debt token addresses, and isolation-mode debt. The per-second rates are compounded over a year on-chain into supplyApy and borrowApy at 18 decimals, so the yield figure is exactly what the pool accrues at this block. Reach for it when a strategy chooses between markets by yield, gates a supply on a minimum APY, or needs the aToken or debt token address to read a balance in the next step.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

Supply USDC to Aave on Base

aave
plug
3actions
  1. 1·Get asset data

    Reading Aave's reserve for USDC at 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 in the Base market at 0xe20fcbdbffc4dd138ce8b2e6fbb6cb49777ad64d, this returns its live rates and token addresses, including supply and borrow APYs.

  2. 2·Supply

    Supplying 50 of USDC to that same Base market, this deposits the asset and mints aTokens to the wallet.

  3. 3·Bubble

    Surfacing the value in slot 0.21 as this plug's output, this exposes a figure from the reserve read for callers downstream.

Get asset data of in
Supply to
Bubble

More plugs on Base

Earn yield on Base · 12 plugs

Posts · 8

More on Aave · 25

On other protocols · 3