In progress. This table is not served yet. The page documents it as it lands.
facts.lending_market_repayments combines the repayment events of every lending protocol we decode into one table: one row per repayment of a loan. lending_market_id keys each row to its market in the Registry.
Columns
| Column | Type | Description |
|---|---|---|
block_timestamp | TIMESTAMP | Time of the block containing the repayment. Partition column. |
block_number | INT64 | Number of the block containing the repayment. |
transaction_hash | STRING | Hash of the transaction that emitted the repayment event. |
log_index | INT64 | Position of the repayment event in the block. |
unique_id | INT64 | Row key: fingerprint of chain_id, block_number, transaction_hash, log_index. |
chain_id | STRING | Chain the repayment happened on. |
lending_market_id | STRING | Market the repayment entered; joins dimensions.lending_markets. |
project_id | STRING | Protocol operating the market, such as aave. |
token_id | STRING | Token repaid: {token_address}-{chain_id}. |
token_address | STRING | Contract address of the token repaid. |
borrower_address | STRING | Account whose debt was repaid. |
repayer_address | STRING | Account that paid, when repaid for another account. |
amount_raw | STRING | Raw amount as text; a uint256 exceeds every BigQuery number type. |
Sample queries
- One market, one day
- Daily USD volume
Read one marketβs repayments on a single day. Cast
amount_raw to BIGNUMERIC and divide by 10^decimals from dimensions.tokens to get the token amount.