ZookTGC Staking Leaderboard
    Updated 2025-05-20
    -- 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: 11 days agoAuto-refreshes every 24 hours
    STAKER_ADDRESS
    TGC_STAKED
    1
    0xcb6571637c0e9984f091778258fe84caaafe37b2968613
    2
    0x4c05908d02467840c3bdb9c1848f3c13090eabdf721822
    3
    0xfa288c37fdbbf08220b0627e6ce7107e9919eb11610453
    4
    0xe2a9ca2f52df52f24994813310ac69fbb693f65c540400
    5
    0x585b29ff517f44d1df59d1bb1bc0b9dc32b29fc4501731
    6
    0x348ed12e1401d20a2171712fcc17764c3c8ff6c1461761
    7
    0x48543a9ae66d654fcf1329bf4d625e54db57e2bf460346
    8
    0x55e94e836f312d98171eff73146926a5fa2a3b25366106
    9
    0x71f9ccd68bf1f5f9b571f509e0765a04ca4ffad2277380
    10
    0xd1b6ac3d46ba5d7e071c887f99d6b82f0d6b3b47273947
    11
    0x5f093a22f87aa5d024aa4d9b71503a52296db38e243806
    12
    0xd17f2be49c4dbb558cea888a2e76bdf41d637969228424
    13
    0xf4ae1527dad68f617cb46aafc5f231838f90b327176527
    14
    0x558e15edb19be404224a834f7776ab79bd783225163966
    15
    0x23b7db46a7fee619d5ac1cf57f4c27248f14ecc7162704
    16
    0x418b04bee2d2e42db049fce9d5b6972549e47814106114
    17
    0x14290aecde8ff0ba9a7f47447903f1dae8c7a790101354
    18
    0x8642f2001d1e82d5d9b9430404a96337de6a513190000
    19
    0xaccc3cb8d513d7965015351857b303eb5e507f3689843
    20
    0xc62b24e67ec9178a2cb493c499488d84e6bfcb7c83333
    ...
    4367
    213KB
    202s