crosschain.lending.interest_rates table contains supply and borrowing interest rate as well as outstanding loans across every chain and supported protocols Allium covers. Each chain’s rows are also in its own <chain>.lending.interest_rates table.
The interest rates of lending pools for most protocols are updated on-chain when a lending event occurs.
This model maps the various interest rate data, such as supply and borrowing APYs, outstanding loans, and available liquidity, to the corresponding lending protocol and market.
Note that not all fields are applicable to all protocols.
Table Details
| Property | Value |
|---|---|
| Table Name | crosschain.lending.interest_rates |
| Table Status | Production-Ready |
| Unique Key | transaction_hash, unique_id |
Chain Coverage
| Table | Chains |
|---|---|
crosschain.lending.interest_rates | 31 chains (2 standalone)In crosschainArbitrum, Arc, Avalanche, Base, BNB Smart Chain, Celo, Ethereum, Gnosis, HyperEVM, Ink, Katana, Linea, Mantle, MegaETH 🌱, Monad, Optimism, Plasma, Plume, Polygon, Robinhood, Scroll, Soneium, Sonic, Stable, Tempo, Unichain, World Chain, X Layer, ZKsync Standalone Sei, TRON |
Sample Query
Fetch the variable borrow APY for Aave v3 on Ethereum in the past 180 days.select
date(block_timestamp) as date,
project,
protocol,
token_address,
token_name,
token_symbol,
median(variable_borrow_apy) as variable_borrow_apy -- APY for borrowing
from ethereum.lending.interest_rates
where project = 'aave' and protocol = 'aave_v3'
and block_timestamp >= current_date - 180
group by all
Table Columns
| Column Name | Data Type | Description |
|---|---|---|
| chain | VARCHAR(10) | Slug identifying the blockchain this record belongs to (e.g. ethereum, base, avalanche, solana). In per-chain tables this is always the same value; in cross-chain tables it identifies which chain the row came from. |
| project | VARCHAR(16777216) | Business name of the protocol being used (e.g. uniswap, aave, lido, paraswap). Consistent across verticals — every table with a project column uses this field to identify the top-level protocol brand. |
| protocol | VARCHAR(16777216) | Specific version or variant of the protocol (e.g. uniswap_v3, aave_v2, stargate_v2). Qualifies the project field with version information. |
| note | VARCHAR(16777216) | Additional note or annotation for the interest rate record (e.g., protocol-specific context). |
| contract_address | VARCHAR(16777216) | Address of the smart contract that emitted this event or was called in this transaction. |
| market_address | VARCHAR(16777216) | Address of the lending market contract. For Aave this is the Pool/LendingPool address; for Compound this is the cToken contract; for Morpho this is the specific market address. |
| token_address | VARCHAR(16777216) | Contract address of the token. For EVM chains, native currency (e.g. ETH, MATIC) is represented as the zero address (0x0000000000000000000000000000000000000000). For Solana, this is the mint address. |
| token_name | VARCHAR(16777216) | Full name of the token (e.g. “USD Coin”, “Wrapped Ether”). |
| token_symbol | VARCHAR(16777216) | Ticker symbol of the token (e.g. “USDC”, “WETH”). |
| token_decimals | NUMBER(38,0) | Number of decimal places used to represent the token’s smallest unit. Used to convert raw amounts: normalized_amount = raw_amount / 10^decimals. For example, USDC has 6 decimals, so 2500000 raw units = 2.5 USDC. |
| usd_exchange_rate | FLOAT | USD price per unit of the token at the row’s timestamp, used to compute the row’s USD values. Sourced from Allium’s hourly price feed. |
| supply_apy | FLOAT | Annual Percentage Yield for suppliers/lenders, expressed as a percentage. |
| stable_borrow_apy | FLOAT | Annual Percentage Yield for stable-rate borrowers, expressed as a percentage. Only applicable for protocols with stable rates like Aave. |
| variable_borrow_apy | FLOAT | Annual Percentage Yield for variable-rate borrowers, expressed as a percentage. |
| cumulative_supply_interest | FLOAT | Cumulative index tracking interest earned by suppliers over time. Only applicable for certain protocols like Aave. |
| cumulative_borrow_interest | FLOAT | Cumulative index tracking interest accumulated for borrowers over time. Only applicable for certain protocols like Aave. |
| outstanding_loans | FLOAT | Total amount of tokens borrowed from the market, normalized by token decimals. |
| outstanding_loans_usd | FLOAT | Total USD value of loans currently outstanding (borrowed but not yet repaid) in this lending market. |
| supplied_amount | FLOAT | Total amount of tokens supplied to the market, normalized by token decimals. |
| supplied_amount_usd | FLOAT | Total USD value of assets currently supplied to this lending market as collateral or liquidity. |
| available_liquidity | FLOAT | Amount of tokens available for borrowing, normalized by token decimals. |
| available_liquidity_usd | FLOAT | Total USD value of assets available to borrow from this lending market (supplied amount minus outstanding loans). |
| trace_params | VARIANT | Raw parameters from the trace call that provided the interest rate data. |
| logs_params | VARIANT | Raw parameters from the event logs that provided the interest rate data. |
| transaction_hash | VARCHAR(16777216) | Hash of the transaction that produced this record. Uniquely identifies a transaction within the blockchain. |
| transaction_index | NUMBER(38,0) | Zero-based position of the transaction within its block. The first transaction in a block has index 0. |
| block_timestamp | TIMESTAMP_NTZ(9) | Timestamp (UTC) of the block in which this event was confirmed. |
| block_number | NUMBER(38,0) | Sequential number of the block that contains this record. Starts at 0 (genesis block) and increments by 1 for each new block. |
| block_hash | VARCHAR(16777216) | Cryptographic hash of the block header that contains this record. Uniquely identifies a block. |
| unique_id | VARCHAR(16777216) | Allium’s deterministic unique identifier for this row. Generated from the fields that uniquely identify the record (e.g. transaction hash + log index). Stable across full refreshes. |
| _created_at | TIMESTAMP_NTZ(9) | Timestamp (UTC) when this row was first written to the Allium platform. Set once on insert and never changed. |
| _updated_at | TIMESTAMP_NTZ(9) | Timestamp (UTC) of the most recent update to this row in the Allium platform. Advances when the row is reprocessed or enriched (e.g. USD price hydration). |