Skip to content

Commit

Permalink
upgrades (#315)
Browse files Browse the repository at this point in the history
* upgrades

* fix
  • Loading branch information
austinFlipside authored Nov 20, 2024
1 parent d259f46 commit 9506f07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 5 additions & 3 deletions models/bronze/api_udf/bronze_api__contract_abis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ WITH base AS (
total_interaction_count >= 100

{% if is_incremental() %}
EXCEPT
and contract_address not in (
SELECT
contract_address
FROM
{{ this }}
WHERE
abi_data :data :result :: STRING <> 'Max rate limit reached'
WHERE
abi_data :data :result :: STRING <> 'Max rate limit reached'
)
{% endif %}
order by total_interaction_count desc
LIMIT
50
), all_contracts AS (
Expand Down
6 changes: 1 addition & 5 deletions models/silver/core/silver__relevant_contracts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ GROUP BY
),
function_calls AS (
SELECT
IFF(
TYPE = 'DELEGATECALL',
from_address,
to_address
) AS contract_address,
to_address AS contract_address,
COUNT(*) AS function_call_count,
MAX(_inserted_timestamp) AS max_inserted_timestamp_traces,
MAX(block_number) AS latest_call_block
Expand Down

0 comments on commit 9506f07

Please sign in to comment.