mirror of
https://github.com/FlipsideCrypto/sui-models.git
synced 2026-02-06 11:06:56 +00:00
filter failed txns
This commit is contained in:
parent
e5245f2f91
commit
63cf25c97d
@ -44,7 +44,8 @@ filtered as (
|
||||
allowed_tx at
|
||||
ON fbc.tx_digest = at.tx_digest
|
||||
WHERE
|
||||
fbc.tx_sender != coalesce(fbc.address_owner, fbc.object_owner)
|
||||
fbc.tx_succeeded
|
||||
AND fbc.tx_sender != coalesce(fbc.address_owner, fbc.object_owner)
|
||||
AND NOT (balance_change_index = 0 AND amount < 0) -- remove mints, self-splits, proofs, flash loans
|
||||
{% if is_incremental() %}
|
||||
AND fbc.modified_timestamp >= (SELECT COALESCE(MAX(modified_timestamp),'1970-01-01') FROM {{ this }})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user