Skip to main content

Table Details

PropertyValue
Table Namecelo.lending.loans
Table StatusProduction-Ready
Unique Keyblock_timestamp, unique_id
Clustering Key(s)block_timestamp::date

Table Columns

Column NameData TypeDescription
projectVARCHAR(16777216)Name of the lending project
protocolVARCHAR(16777216)Underlying protocol that the lending protocol is utilising
lending_eventVARCHAR(16777216)Type of lending event (always ‘borrows’ for this table)
event_nameVARCHAR(16777216)Name of the event
market_addressVARCHAR(16777216)Address of the lending market
borrower_addressVARCHAR(16777216)Address of the borrower
token_addressVARCHAR(16777216)Address of the token borrowed
token_nameVARCHAR(16777216)Name of the token borrowed
token_symbolVARCHAR(16777216)Symbol of the token borrowed
token_decimalsNUMBER(38,0)Number of decimals of the token borrowed
raw_amount_strVARCHAR(16777216)Raw amount of the token borrowed, in string to retain precision
amount_strVARCHAR(16777216)Normalised amount of the token borrowed, in string to retain precision
amountFLOATNormalised amount of the token borrowed
usd_amountFLOATUSD amount of the token borrowed at the time of the transaction
usd_exchange_rateFLOATHourly USD exchange rate of the token borrowed
extra_fieldsVARIANTExtra fields from the event
transaction_hashVARCHAR(16777216)Transaction hash of the event
transaction_indexNUMBER(38,0)Index of the transaction in the block
transaction_from_addressVARCHAR(16777216)Address of the sender of the transaction
transaction_to_addressVARCHAR(16777216)Address of the recipient of the transaction
log_indexNUMBER(38,0)Index of the log in the transaction
topic0VARCHAR(16777216)Topic 0 of the event
block_numberNUMBER(38,0)Block number of the event
block_timestampTIMESTAMP_NTZ(9)Timestamp of the block
block_hashVARCHAR(16777216)Hash of the block
unique_idVARCHAR(16777216)Unique ID of the event
_created_atTIMESTAMP_NTZ(9)Timestamp of when the event was created
_updated_atTIMESTAMP_NTZ(9)Timestamp of when the event was last updated