From acd1ecb0b3b23b5d472da9409b49aefc61656148 Mon Sep 17 00:00:00 2001 From: Austin <93135983+austinFlipside@users.noreply.github.com> Date: Fri, 20 Jun 2025 09:42:00 -0400 Subject: [PATCH] quali (#458) --- .../core/core_evm__ez_token_transfers.sql | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/models/evm/gold/core/core_evm__ez_token_transfers.sql b/models/evm/gold/core/core_evm__ez_token_transfers.sql index 4d39684..c268120 100644 --- a/models/evm/gold/core/core_evm__ez_token_transfers.sql +++ b/models/evm/gold/core/core_evm__ez_token_transfers.sql @@ -85,7 +85,10 @@ AND f.modified_timestamp > ( {{ this }} ) {% endif %} -) +), + +final AS ( + SELECT block_number, block_timestamp, @@ -283,4 +286,31 @@ WHERE ) ) -- Only heal USD if we have price and decimals ) - {% endif %} \ No newline at end of file + {% 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 \ No newline at end of file