Query editor
/*MIT LicenseCopyright (c) 2025 Berry_BearPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.Follow me on X: https://x.com/DeFi_Berry_Bear*/WITH supply_data AS (SELECTTRY_CAST(TRY_CAST(JSON_EXTRACT_SCALAR(HTTP_GET('https://api.merchantmoe.com/supply/circulating'),'$') AS DOUBLE) / 1e18 AS DOUBLE) AS circ_supply,(SELECT moe_staked FROM dune.berry_bear.result_total_moe_staked) AS staked_total)SELECT'staked_percent' AS metric,ROUND((staked_total / circ_supply) * 100, 2) AS valueFROM supply_dataUNION ALLSELECT'unstaked_percent' AS metric,ROUND(((circ_supply - staked_total) / circ_supply) * 100, 2) AS valueFROM supply_data;