Skip to main content

Table Details

PropertyValue
Table Namecelo.lending.repayments
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 ‘repayments’ for this table)
event_nameVARCHAR(16777216)Name of the event
market_addressVARCHAR(16777216)Address of the lending market where the repayment occurred
borrower_addressVARCHAR(16777216)Address of the original borrower of the debt
repayer_addressVARCHAR(16777216)Address of the account repaying the debt (may be different from borrower)
token_addressVARCHAR(16777216)Address of the token being repaid
token_nameVARCHAR(16777216)Name of the token being repaid
token_symbolVARCHAR(16777216)Symbol of the token being repaid
token_decimalsNUMBER(38,0)Number of decimals of the token
raw_amount_strVARCHAR(16777216)Raw amount of tokens repaid, in string to retain precision
amount_strVARCHAR(16777216)Normalised amount of tokens repaid, in string to retain precision
amountFLOATNormalised amount of tokens repaid
usd_amountFLOATUSD value of the tokens repaid at the time of the transaction
usd_exchange_rateFLOATHourly USD exchange rate of the token
extra_fieldsVARIANTAdditional protocol-specific fields from the event
transaction_hashVARCHAR(16777216)Transaction hash of the repayment event
transaction_indexNUMBER(38,0)Index of the transaction in the block
transaction_from_addressVARCHAR(16777216)Address of the sender of the repayment transaction
transaction_to_addressVARCHAR(16777216)Address of the recipient of the repayment 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 repayment event
block_timestampTIMESTAMP_NTZ(9)Timestamp of the block
block_hashVARCHAR(16777216)Hash of the block
unique_idVARCHAR(16777216)Unique ID of the repayment event
_created_atTIMESTAMP_NTZ(9)Timestamp of when the event was created
_updated_atTIMESTAMP_NTZ(9)Timestamp of when the event was last updated