ZookTGC Staking Leaderboard
    Updated 16 hours ago
    -- deposit transactions include :
    --'Deposit' (to staking contract)
    --'Claim and Stake'
    --'Buy TGC with ETH and Stake'
    --'Buy TGC with USDT and Stake'

    --accrued TGC rewards are not included in the Net_TGC_staked result. Similarly, 'claim rewards' are not included in Withdrawals.

    WITH deposit_data AS (
    SELECT -- deposits
    decoded_log:user::STRING AS FROM_ADDRESS,
    SUM(decoded_log:amount::NUMBER) / 1E18 AS total_deposits_staking
    FROM ethereum.core.fact_decoded_event_logs
    WHERE
    BLOCK_TIMESTAMP > '2023-01-01 09:00:47.000'
    AND
    (CONTRACT_ADDRESS = lower('0x0916568854Fc53B720186052d8013D62A0409b47')
    OR CONTRACT_ADDRESS = lower('0x258c3104388f8cd72c8b4336fc536033e6db764e'))
    AND EVENT_NAME = 'Deposit'
    GROUP BY FROM_ADDRESS
    ),

    withdrawal_data AS (
    SELECT
    decoded_log:user::STRING AS TO_ADDRESS,
    SUM(decoded_log:amount::NUMBER) / 1E18 AS total_withdrawals_unstaking
    FROM ethereum.core.fact_decoded_event_logs
    WHERE
    BLOCK_TIMESTAMP > '2023-01-01 09:00:47.000'
    AND
    (CONTRACT_ADDRESS = lower('0x0916568854Fc53B720186052d8013D62A0409b47')
    OR CONTRACT_ADDRESS = lower('0x258c3104388f8cd72c8b4336fc536033e6db764e'))
    AND EVENT_NAME = 'Withdraw'
    GROUP BY TO_ADDRESS
    )
    SELECT
    Last run: about 16 hours agoAuto-refreshes every 24 hours
    STAKER_ADDRESS
    TGC_STAKED
    1
    0x722aca88a2476f70c96f78c55f4bdeb618c9525b5608738
    2
    0x1208ce9f6c8346af03d9622be6a5b4478830abb62530147
    3
    0x4885e698820201b5c10b9e9d14398253b4eece421849270
    4
    0x68d39920a2e1468fb0240c1faed8d3c9a36bd3f01710125
    5
    0xe78f351e4ec96c0ddc052e50fdcbbe486fac8c961696520
    6
    0xa05a65b4dad9a4c0ba18d83203a65f0f077997801584236
    7
    0x717affd69e3482fcf2cf60fd69782eb101f81faf1250000
    8
    0x24153947c70fba132f627984672dc3486ffc2ff21163106
    9
    0x94349c7126c164f976cbdee656dfa7c7e691acae1119880
    10
    0xc4e17df17080e7e571be0d0dc2fe2f7f38a347c51020200
    11
    0xcb6571637c0e9984f091778258fe84caaafe37b2968613
    12
    0x43b0a1aac5eebfd11d8c47d4da8db0c545cbb252964923
    13
    0x27a54db9d46675eab25764ac073a44540dc37585951735
    14
    0x8325a509845a8f4f2760ead394ad95b059ef645c924321
    15
    0x68ac5f59c5df8cf58b75cab294fdd776b09ec7b9865372
    16
    0x27f11162c185efd45ca90a8f906860a5b9316adb773651
    17
    0x1d952e5e052776c56cad91e5c3c882c09f1eb52c752651
    18
    0xdf5251077296f7d507a3649c7f22b2975afca9a1742354
    19
    0x83a15897eede571447dd0c74e84f4b1e39e7b922741200
    20
    0x4c05908d02467840c3bdb9c1848f3c13090eabdf721822
    ...
    4352
    213KB
    54s