mirror of
https://github.com/FlipsideCrypto/external-models.git
synced 2026-02-06 13:17:03 +00:00
new column (#71)
This commit is contained in:
parent
881d60c0bb
commit
b4ba2a644b
@ -41,6 +41,7 @@ WITH meta AS (
|
||||
refund_from,
|
||||
refund_to,
|
||||
refund_value_eth,
|
||||
is_mevshare,
|
||||
s.value
|
||||
FROM
|
||||
{{ source(
|
||||
|
||||
@ -40,6 +40,7 @@ WITH meta AS (
|
||||
refund_from,
|
||||
refund_to,
|
||||
refund_value_eth,
|
||||
is_mevshare,
|
||||
s.value
|
||||
FROM
|
||||
{{ source(
|
||||
|
||||
@ -26,6 +26,7 @@ SELECT
|
||||
refund_tx_hash,
|
||||
refund_from,
|
||||
refund_to,
|
||||
refund_value_eth
|
||||
refund_value_eth,
|
||||
is_mevshare
|
||||
FROM
|
||||
{{ ref('silver__flashbots_mev_txs') }}
|
||||
|
||||
@ -42,4 +42,6 @@ models:
|
||||
- name: REFUND_TX_TO
|
||||
description: The Ethereum address to which the refund was sent, which usually is user address but can be a different address user set when sending transaction to Flashbots Protect / MEV-share.
|
||||
- name: REFUND_VALUE_ETH
|
||||
description: The amount of ETH refunded to the protect transaction, as a result of a successful OFA backrun, depending on user's refund percentage setting when sending the transaction.
|
||||
description: The amount of ETH refunded to the protect transaction, as a result of a successful OFA backrun, depending on user's refund percentage setting when sending the transaction.
|
||||
- name: IS_MEVSHARE
|
||||
description: If true, mev-share matched the transactions in the bundle. If false, it was sent pre-matched from a third party to mev-share.
|
||||
@ -23,6 +23,7 @@ SELECT
|
||||
LOWER(refund_from) AS refund_from,
|
||||
LOWER(refund_to) AS refund_to,
|
||||
refund_value_eth,
|
||||
is_mevshare::boolean as is_mevshare,
|
||||
_inserted_timestamp,
|
||||
{{ dbt_utils.generate_surrogate_key(
|
||||
['user_tx_hash', 'backrun_tx_hash', 'bundle_id']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user