Skip to main content
Schema: thorchain.defi Table: fact_swaps Type: Base Table Fact table that shows the swap activity in Thorchain

Columns

Column NameData TypeDescription
FACT_SWAPS_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
POOL_NAMETEXTName of the pool — also asset name in other tables
FROM_ADDRESSTEXTThe user address that initiates the swap
NATIVE_TO_ADDRESSTEXTThe user address that is receiving the result of the swap
TO_POOL_ADDRESSTEXTThe pool address that processes the swap
AFFILIATE_ADDRESSTEXTThe affiliate address that is receiving the affiliate fee (redundant with array)
AFFILIATE_FEE_BASIS_POINTSNUMBERThe affiliate fee basis points that is received by the affiliate address (redundant with array)
AFFILIATE_ADDRESSES_ARRAYARRAYThe affiliate addresses that are receiving the affiliate fee
AFFILIATE_FEE_BASIS_POINTS_ARRAYARRAYThe affiliate fee basis points that are received by the affiliate addresses
FROM_ASSETTEXTInitial asset to swap
TO_ASSETTEXTThe asset swap to
FROM_AMOUNTFLOATAmount of the asset to swap from
TO_AMOUNTFLOATAmount of the asset to swap for
MIN_TO_AMOUNTFLOATMinimal amount to swap for
FROM_AMOUNT_USDFLOATAmount in USD of the asset to swap from
TO_AMOUNT_USDFLOATAmount in USD of the asset to swap for
RUNE_USDFLOATMinimal amount in USD to swap for
ASSET_USDFLOATAsset amount in USD
TO_AMOUNT_MIN_USDFLOATMin asset amount in USD
SWAP_SLIP_BPNUMBERThe slippage during the swap process
LIQ_FEE_RUNEFLOATThe amount of RUNE liquidity fee paid in RUNE for the swaps
LIQ_FEE_RUNE_USDFLOATThe amount of RUNE in USD liquidity fee paid in RUNE for the swaps
LIQ_FEE_ASSETFLOATThe amount of Asset liquidity fee paid in RUNE for the swaps
LIQ_FEE_ASSET_USDFLOATThe amount of Asset in USD liquidity fee paid in RUNE for the swaps
STREAMING_COUNTNUMBERThe count of the streaming events
STREAMING_QUANTITYNUMBERThe quantity of the streaming events
_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.