pietrektProtocol Earnings Breakdown
    Updated 10 hours ago
    -- NETWORK FEES
    WITH network_fees_table AS (SELECT distinct to_date(block_timestamp) as date, 0.02 * COUNT(dim_block_id) as network_fee
    FROM thorchain.core.fact_transfer_events
    WHERE to_address = 'thor1dheycdevq39qlkxs2a6wuuzyn4aqxhve4qxtxt' AND amount_e8 = 2000000 GROUP BY date),
    -- SLASHING INCOME
    slashing_income_table AS (SELECT DISTINCT to_date(block_timestamp) as date, SUM(amount_e8) / 1e8 as slashing_income
    FROM thorchain.core.fact_transfer_events
    WHERE from_address = 'thor17gw75axcnr8747pkanye45pnrwk7p9c3cqncsv' AND to_address = 'thor1dheycdevq39qlkxs2a6wuuzyn4aqxhve4qxtxt' GROUP BY date),
    -- OUTBOUND FEE
    outbound_fee_table AS (SELECT distinct to_date(block_timestamp) as date, SUM(pool_deduct) / 1e8 as outbound_fee
    FROM thorchain.defi.fact_fee_events GROUP BY date),
    -- GAS REIMBRUSEMENT
    gas_reimbursement_table AS (SELECT distinct to_date(block_timestamp) as date, SUM(rune_e8) / 1e8 as gas_reimbursement
    FROM thorchain.defi.fact_gas_events GROUP BY date),
    -- IL PROTECTION
    il_protection_table AS (SELECT day as date, SUM(IL_PROTECTION_PAID) as il_protection
    FROM thorchain.defi.fact_daily_pool_stats GROUP BY date),
    -- RUNE Upgrades select * from thorchain.upgrades WHERE from_address = 'bnb1c8umfhf6qdrrtdrkvk32w3ge35ywll0wtwv0hp'
    rune_upgrades_table AS (SELECT to_date(block_timestamp) as date, sum(rune_amount) as rune_upgrades FROM thorchain.defi.fact_upgrades WHERE from_address = 'bnb1c8umfhf6qdrrtdrkvk32w3ge35ywll0wtwv0hp' group by date),
    -- BLOCK REWARDS
    block_reward_table AS (SELECT day as date, block_rewards FROM thorchain.defi.fact_block_rewards),
    -- LIQ FEES
    liq_fees AS (SELECT day as date, liquidity_fees as liquidity_fees_rune from thorchain.defi.fact_daily_earnings),
    -- DEV FUND
    from_transactions_dev_module AS (SELECT to_date(block_timestamp) as date, amount_e8 / 1e8 * (-1) as amount
    FROM thorchain.core.fact_transfer_events as c1
    WHERE
    (c1.from_address = 'thor1d8c0wv4y72kmlytegjmgx825xwumt9qt5xe07k'
    or c1.from_address = 'thor1d8c0wv4y72kmlytegjmgx825xwumt9qt5xe07k')
    AND c1.asset = 'THOR.RUNE' ORDER BY date),

    to_transactions_dev_module AS (SELECT to_date(block_timestamp) as date, amount_e8 / 1e8 as amount
    FROM thorchain.core.fact_transfer_events as c1
    WHERE
    (c1.to_address = 'thor1d8c0wv4y72kmlytegjmgx825xwumt9qt5xe07k'
    or c1.to_address = 'thor1d8c0wv4y72kmlytegjmgx825xwumt9qt5xe07k')
    Last run: about 10 hours agoAuto-refreshes every 24 hours
    DAY
    NETWORK_FEE
    SLASHING_INCOME
    OUTBOUND_FEE
    LIQUIDITY_FEES_RUNE
    GAS_REIMBURSEMENT
    IL_PROTECTION
    BLOCK_REWARDS
    DEV_FUND_INCOME
    INCOME_BURN_RUNE
    POOL_AND_BOND_REWARDS
    RESERVE_INCOME
    RESERVE_EXPENSE
    1
    2025-06-07 00:00:00.000410.580646.42785615446.12175107-275.7901620-2-771.646457-771.646478-13904.8288160716503.12960707-15725.91191307
    2
    2025-06-06 00:00:00.000960.040.31369.76506345714.01496949-598.0228710-2-2279.397807-2279.397807-41157.2193554948044.12003249-46316.03784049
    3
    2025-06-05 00:00:00.0001210.1439.7172681595.30325728802.03702722-1142.2897530-2232872.728149-1437.761851-260239.0033252231647.19755222-29948.32678022
    4
    2025-06-04 00:00:00.000794.3676.2566291179.53144517159.07485717-634.7763080-2-851.772693-851.772693-15457.5294711719209.22293117-17797.85116517
    5
    2025-06-03 00:00:00.000992.841.021182.30040244710.35646418-704.2147690-2-2224.196568-2224.196568-40263.9633281846886.51686618-45418.57123318
    6
    2025-06-02 00:00:00.000918.720.281273.01846533820.94349597-618.4850350-2-1688.866133-1688.866133-30445.2112299736012.96196097-34443.42853097
    7
    2025-06-01 00:00:00.000725.2201187.97995440871.80871311-590.3693680-2-2041.136361-2041.136361-36791.5359911142785.00866711-41466.17808111
    8
    2025-05-31 00:00:00.0001061.92102.7828521395.97862855365.71295181-669.5964260-2-2758.763825-2758.763825-49850.1853018157926.39443181-56039.30937781
    9
    2025-05-30 00:00:00.0001072.2424.5347181593.75456140692.21452131-883.6459590-2-2028.834864-2028.834864-36636.5447933143382.74380031-41579.86048031
    10
    2025-05-29 00:00:00.000882.840.561291.1181536125.31552932-672.373690-2-1757.687934-1757.687934-32611.9396613238299.83367932-36801.68921932
    11
    2025-05-28 00:00:00.0001052.781.3956051550.7075342436.84777654-915.1248810-2-2112.02462-2112.02462-38214.7985365445041.73091154-43355.97265754
    12
    2025-05-27 00:00:00.0001007.117.0493381730.75652741084.74885196-1275.6947490-2-2043.404579-2043.404579-36999.9396939643839.65471696-42364.44360096
    13
    2025-05-26 00:00:00.000978.280.381424.78183835332.96654751-630.1504960-2-1760.057784-1760.057784-31814.8509795137736.40838551-35967.11704351
    14
    2025-05-25 00:00:00.0001005.841.181451.7179639704.57126221-579.2728690-2-1984.352795-1984.352795-35737.8656722142163.30922221-40287.84413121
    15
    2025-05-24 00:00:00.000972.620.281198.23098433328.83439587-486.2380240-2-1664.33474-1664.33474-30002.1649158735499.96537987-33819.07241987
    16
    2025-05-23 00:00:00.000123647.3480131722.96431334666.19382005-1016.4498910-2-1706.764342-1706.764342-31254.6651360537672.50614605-35686.64371105
    17
    2025-05-22 00:00:00.0001660.61.462122.17168196604.41369868-1634.9923770-2-4824.45305-4824.45305-86957.50759868100388.64537968-98243.40607568
    18
    2025-05-21 00:00:00.0001619.660.061991.78679392509.68907274-1501.5348580-2-4616.429703-4616.429703-83278.8296667496121.19586574-94015.22393074
    19
    2025-05-20 00:00:00.0001199.560.021333.71652738838.61921646-770.0963350-2-1935.486132-1935.486132-34969.6469524641371.91574346-39612.71555146
    20
    2025-05-19 00:00:00.0001372.580.021367.46744565713.9654728-760.5371660-2-3279.703353-3279.703353-59156.558766868454.0329178-66478.5026388
    ...
    1488
    184KB
    9s