Skip to main content
Schema: thorchain.defi Table: fact_swaps_events Type: Base Table Fact table that shows the swap event entries table shows the entries for the swaps

Columns

Column NameData TypeDescription
FACT_SWAP_EVENTS_IDTEXTThe surrogate key for the table. Will be unique and is used as a foreign key in other tables
BLOCK_TIMESTAMPTIMESTAMP_NTZTimestamp of block minting(without a timezone)
DIM_BLOCK_IDTEXTFK to DIM_BLOCK table
TX_IDTEXTThe unique transaction id
BLOCKCHAINTEXTThe name of the blockchain
FROM_ADDRESSTEXTThe user address that initiates the swap
TO_ADDRESSTEXTThe address we are swapping to
FROM_ASSETTEXTThe asset we are swapping from
FROM_E8NUMBERThe amount we are swapping from
TO_ASSETTEXTThe asset we are swapping to
TO_E8NUMBERThe asset amount we are swapping for (divide by 10^8 to get the decimal amount)
MEMOTEXTThe transaction memo
POOL_NAMETEXTThe name of the pool
TO_E8_MINNUMBERThe minimum amount the swapper will receive
SWAP_SLIP_BPNUMBERThe slippage
LIQ_FEE_E8NUMBERThe fee (divide by 10^8 to get the decimal amount)
LIQ_FEE_IN_RUNE_E8NUMBERThe fee in RUNE (divide by 10^8 to get the decimal amount)
_DIRECTIONNUMBER
EVENT_IDNUMBER
_TX_TYPETEXT
_INSERTED_TIMESTAMPTIMESTAMP_NTZ
_AUDIT_RUN_IDTEXT
INSERTED_TIMESTAMPTIMESTAMP_NTZThe utc timestamp at which the row was inserted into the table.
MODIFIED_TIMESTAMPTIMESTAMP_NTZThe utc timestamp at which the row was last modified.