mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 11:47:00 +00:00
quali (#458)
This commit is contained in:
parent
68f25187d6
commit
acd1ecb0b3
@ -85,7 +85,10 @@ AND f.modified_timestamp > (
|
|||||||
{{ this }}
|
{{ this }}
|
||||||
)
|
)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
)
|
),
|
||||||
|
|
||||||
|
final AS (
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
block_number,
|
block_number,
|
||||||
block_timestamp,
|
block_timestamp,
|
||||||
@ -283,4 +286,31 @@ WHERE
|
|||||||
)
|
)
|
||||||
) -- Only heal USD if we have price and decimals
|
) -- Only heal USD if we have price and decimals
|
||||||
)
|
)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
)
|
||||||
|
select
|
||||||
|
block_number,
|
||||||
|
block_timestamp,
|
||||||
|
tx_hash,
|
||||||
|
tx_position,
|
||||||
|
event_index,
|
||||||
|
from_address,
|
||||||
|
to_address,
|
||||||
|
contract_address,
|
||||||
|
token_standard,
|
||||||
|
NAME,
|
||||||
|
symbol,
|
||||||
|
decimals,
|
||||||
|
raw_amount_precise,
|
||||||
|
raw_amount,
|
||||||
|
amount_precise,
|
||||||
|
amount,
|
||||||
|
amount_usd,
|
||||||
|
origin_function_signature,
|
||||||
|
origin_from_address,
|
||||||
|
origin_to_address,
|
||||||
|
ez_token_transfers_id,
|
||||||
|
inserted_timestamp,
|
||||||
|
modified_timestamp
|
||||||
|
from final
|
||||||
|
qualify row_number() over (partition by ez_token_transfers_id order by modified_timestamp desc, amount_usd desc nulls last) = 1
|
||||||
Loading…
Reference in New Issue
Block a user