Skip to content

Commit

Permalink
Nexus Mutual - update contract address (duneanalytics#7508)
Browse files Browse the repository at this point in the history
* chore: update contract address

* fix: add proxy filter

---------

Co-authored-by: Huang Geyang <[email protected]>
  • Loading branch information
tomfutago and Hosuke authored Jan 21, 2025
1 parent 570b50e commit c342d7e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ cover_sales as (
from {{ source('nexusmutual_ethereum', 'Cover_call_buyCover') }} c
cross join unnest(c.poolAllocationRequests) as t(pool_allocation)
where c.call_success
and c.contract_address = 0xcafeac0fF5dA0A2777d915531bfA6B29d282Ee62 -- proxy
),

staking_product_premiums as (
Expand All @@ -64,7 +65,8 @@ staking_product_premiums as (
call_tx_hash as tx_hash
from {{ source('nexusmutual_ethereum', 'StakingProducts_call_getPremium') }}
where call_success
and contract_address = 0xcafea573fbd815b5f59e8049e71e554bde3477e4
--and contract_address = 0xcafea573fbd815b5f59e8049e71e554bde3477e4
and contract_address <> 0xcafea524e89514e131ee9f8462536793d49d8738
),

cover_premiums as (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ staking_pools_created as (
call_tx_hash as tx_hash_created
from {{ source('nexusmutual_ethereum', 'Cover_call_createStakingPool') }}
where call_success
and contract_address = 0xcafeac0fF5dA0A2777d915531bfA6B29d282Ee62
and contract_address = 0xcafeac0fF5dA0A2777d915531bfA6B29d282Ee62 -- proxy
union all
select
select
call_block_time as block_time_created,
output_0 as pool_id,
output_1 as pool_address,
Expand Down Expand Up @@ -94,7 +94,8 @@ staking_pool_products_updated as (
from {{ source('nexusmutual_ethereum', 'StakingProducts_call_setProducts') }} as p
cross join unnest(params) as t(json)
where p.call_success
and p.contract_address = 0xcafea573fBd815B5f59e8049E71E554bde3477E4
--and p.contract_address = 0xcafea573fBd815B5f59e8049E71E554bde3477E4
and p.contract_address <> 0xcafea524e89514e131ee9f8462536793d49d8738
and cast(json_query(t.json, 'lax $.setTargetWeight') as boolean) = true
) t
),
Expand Down

0 comments on commit c342d7e

Please sign in to comment.