0xHaM-dstAPT Amount Over Time
    Updated 2025-05-29
    with eventTb as (
    select
    BLOCK_TIMESTAMP,
    EVENT_RESOURCE,
    TX_HASH,
    sender as user,
    EVENT_DATA:amount :: float / pow(10, 8) as amount,
    coalesce(case when t1.EVENT_RESOURCE = 'MintEvent' then t1.EVENT_DATA:amount :: float / pow(10, 8) end, 0) as "Mint Amount",
    coalesce(case when t1.EVENT_RESOURCE = 'BurnEvent' then t1.EVENT_DATA:amount :: float / pow(10, 8) end, 0) as "Burn Amount",
    FROM aptos.core.fact_events t1
    join aptos.core.fact_transactions t3 using(tx_hash, block_timestamp)
    WHERE PAYLOAD_FUNCTION ilike '0x111ae3e5bc816a5e63c2da97d0aa3886519e0cd5e4b046659fa35796bd11542a%'
    AND t1.EVENT_MODULE IN ('stapt_token')
    AND t1.EVENT_RESOURCE IN ('MintEvent','BurnEvent')
    )
    SELECT
    trunc(BLOCK_TIMESTAMP, 'week') as date,
    sum("Mint Amount") as "Mint stAPT Amount",
    sum("Burn Amount")*-1 as "Burn stAPT Amount",
    "Mint stAPT Amount" + "Burn stAPT Amount" as "Net stAPT Amount",
    sum("Mint stAPT Amount") over (ORDER by date) as "Cum Mint stAPT Amount",
    sum("Burn stAPT Amount") over (ORDER by date) as "Cum Burn stAPT Amount",
    sum("Net stAPT Amount") over (ORDER by date) as "Cum Net stAPT Amount"
    from eventTb
    GROUP by 1
    order by 1 DESC

    Last run: 15 days ago
    DATE
    Mint stAPT Amount
    Burn stAPT Amount
    Net stAPT Amount
    Cum Mint stAPT Amount
    Cum Burn stAPT Amount
    Cum Net stAPT Amount
    1
    2025-05-26 00:00:00.000110045.33650778-345073.60687096-235028.2703631853627809.9176777-51061159.46411652566650.4535612
    2
    2025-05-19 00:00:00.000504607.41748674-605940.49400454-101333.076517853517764.5811699-50716085.85724552801678.72392438
    3
    2025-05-12 00:00:00.0001253235.2913307-5128612.44341138-3875377.1520806853013157.1636832-50110145.3632412903011.80044218
    4
    2025-05-05 00:00:00.000130553.65502498-527309.7964643-396756.1414393251759921.8723525-44981532.91982966778388.95252286
    5
    2025-04-28 00:00:00.000338664.63436144-407146.16997777-68481.5356163351629368.2173275-44454223.12336537175145.09396218
    6
    2025-04-21 00:00:00.000442717.01552846-1023592.49742848-580875.4819000251290703.5829661-44047076.95338757243626.62957851
    7
    2025-04-14 00:00:00.000183784.79637922-321340.48568028-137555.6893010650847986.5674376-43023484.45595917824502.11147853
    8
    2025-04-07 00:00:00.000543020.70952188-1208973.80301478-665953.093492950664201.7710584-42702143.97027887962057.80077959
    9
    2025-03-31 00:00:00.000674793.66873708-596553.9943437978239.6743932950121181.0615365-41493170.1672648628010.89427249
    10
    2025-03-24 00:00:00.000286553.07095915-732266.8961762-445713.8252170549446387.3927994-40896616.17292028549771.2198792
    11
    2025-03-17 00:00:00.0003053389.05111323-1000416.819025922052972.2320873149159834.3218403-40164349.2767448995485.04509625
    12
    2025-03-10 00:00:00.000251285.8162046-441437.42050045-190151.6042958546106445.270727-39163932.45771816942512.81300894
    13
    2025-03-03 00:00:00.0001282409.04824997-4929514.96046838-3647105.9122184145855159.4545224-38722495.03721767132664.41730479
    14
    2025-02-24 00:00:00.0002875643.96165872-3175861.85782356-300217.8961648444572750.4062725-33792980.076749310779770.3295232
    15
    2025-02-17 00:00:00.0002013340.03202161-1348289.82840893665050.2036126841697106.4446138-30617118.218925711079988.225688
    16
    2025-02-10 00:00:00.000743177.9149586-498684.0139131244493.901045539683766.4125921-29268828.390516810414938.0220754
    17
    2025-02-03 00:00:00.000273455.08111487-189937.2382128783517.84290238940588.4976335-28770144.376603710170444.1210299
    18
    2025-01-27 00:00:00.0001010188.876791-1461303.46943296-451114.5926419638667133.4165187-28580207.138390810086926.2781279
    19
    2025-01-20 00:00:00.0001607660.60598653-2830584.94283166-1222924.3368451337656944.5397277-27118903.668957810538040.8707698
    20
    2025-01-13 00:00:00.0001785097.12664557-3314223.8797699-1529126.7531243336049283.9337411-24288318.726126211760965.2076149
    85
    11KB
    133s