new column (#71)

This commit is contained in:
Austin 2024-07-01 12:10:12 -04:00 committed by GitHub
parent 881d60c0bb
commit b4ba2a644b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 2 deletions

View File

@ -41,6 +41,7 @@ WITH meta AS (
refund_from,
refund_to,
refund_value_eth,
is_mevshare,
s.value
FROM
{{ source(

View File

@ -40,6 +40,7 @@ WITH meta AS (
refund_from,
refund_to,
refund_value_eth,
is_mevshare,
s.value
FROM
{{ source(

View File

@ -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') }}

View File

@ -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.

View File

@ -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']