saber-jlpercentage of compromised wallets
Updated 2022-07-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
›
⌄
with NFT_owner as (
select distinct (NFT_FROM_ADDRESS)
from ethereum.core.ez_nft_transfers
where NFT_TO_ADDRESS = '0x8c7934611b6ad70fbea13a1593de167a4689b9a9'
and BLOCK_TIMESTAMP between '2022-04-24' and '2022-04-26'
group by 1 ),
stolen_wallets as
( SELECT BUYER_ADDRESS as Wallet
from ethereum.core.ez_nft_sales
where nft_address in
(select NFT_ADDRESS
from ethereum.core.ez_nft_transfers
where NFT_TO_ADDRESS = '0x8c7934611b6ad70fbea13a1593de167a4689b9a9'
and NFT_FROM_ADDRESS in
(select distinct NFT_FROM_ADDRESS
from ethereum.core.ez_nft_transfers
where NFT_TO_ADDRESS = '0x8c7934611b6ad70fbea13a1593de167a4689b9a9'
and BLOCK_TIMESTAMP between '2022-04-24' and '2022-04-26')
and BLOCK_TIMESTAMP between '2022-04-24' and '2022-04-26')
and BUYER_ADDRESS in
(select distinct NFT_FROM_ADDRESS
from ethereum.core.ez_nft_transfers
where NFT_TO_ADDRESS = '0x8c7934611b6ad70fbea13a1593de167a4689b9a9'
and BLOCK_TIMESTAMP between '2022-04-24' and '2022-04-26')
and BLOCK_TIMESTAMP > '2022-04-25'
GROUP BY 1)
SELECT count(distinct c.wallet) As "Compromised wallets", count(distinct (NFT_FROM_ADDRESS)) as "All Wallet",
(count(distinct c.wallet) /count(distinct (NFT_FROM_ADDRESS)) * 100) as "Percentage"
FROM NFT_owner a
JOIN stolen_wallets c
Run a query to Download Data