Skip to main content
In progress. This table is not served yet. The page documents it as it lands.
facts.lending_market_interest_rates combines the rate updates of every lending protocol we decode into one table: one row per rate update in a lending market. The market’s contract emits its new rates whenever its balance of deposits and borrows changes. lending_market_id keys each row to its market in the Registry.

Columns

ColumnTypeDescription
block_timestampTIMESTAMPTime of the block containing the update. Partition column.
block_numberINT64Number of the block containing the update.
transaction_hashSTRINGHash of the transaction that emitted the update.
log_indexINT64Position of the update event in the block.
unique_idINT64Row key: fingerprint of chain_id, block_number, transaction_hash, log_index.
chain_idSTRINGChain the market runs on.
lending_market_idSTRINGMarket the rates belong to; joins dimensions.lending_markets.
project_idSTRINGProtocol operating the market, such as aave.
token_idSTRINGUnderlying token of the market: {token_address}-{chain_id}.
deposit_rateFLOAT64Annual rate paid to depositors, as a fraction.
borrow_rateFLOAT64Annual rate charged to borrowers, as a fraction.

Sample queries

The table is partitioned on block_timestamp. Bound that column in every query; without a bound the query reads the whole table.
Read the latest rates of every market in one protocol.