HiveSQL: Unused Hivepower - Ungenutze Hivepower

@hive-coding · 2025-09-06 09:27 · Programming & Dev

EN

How much HivePower is not being used? I asked myself how much of the HivePower is currently not being used for voting. Many accounts use auto-voting, partly simply to avoid leaving the power unused if they do not vote manually enough. After all, you can set the percentage of upvote mana at which this should happen on Hive.vote. I wanted to know how much HivePower has been unused for more than 30 days

;WITH total AS (
SELECT
SUM(
( (a.vesting_shares - a.delegated_vesting_shares)
/ dgp.total_vesting_shares * dgp.total_vesting_fund_hive ))
 AS total_hp
FROM Accounts a
CROSS JOIN DynamicGlobalProperties dgp),

unused AS (
SELECT
SUM(
( (a.vesting_shares - a.delegated_vesting_shares)
/ dgp.total_vesting_shares * dgp.total_vesting_fund_hive ))
 AS unused_hp
FROM Accounts a
CROSS JOIN DynamicGlobalProperties dgp
WHERE a.name NOT IN (
SELECT DISTINCT voter
FROM TxVotes
WHERE timestamp > GETDATE() - 30)
)

SELECT
u.unused_hp,
t.total_hp,
(u.unused_hp / t.total_hp) * 100 AS percent_unused
FROM unused u
CROSS JOIN total t;

This query calculates the sum of all HivePower, the sum of the HivePower of all users who have not cast a vote for at least 30 days, and then the percentage. DynamicGlobalProperties is used to convert the VestingShares into HivePower.

grafik.png

There is currently 126,568,863.453865 Hivepower. 28,160,810.499711 Hivepower has not been used for at least 30 days. That is 22.493% of HivePower. That's quite a lot, what do you think?

Translated with DeepL.com (free version)

DE

Wie viel HivePower wird nicht genutzt?

Ich habe mir die Frage gestellt, wie viel der HivePower wird momentan nicht fürs Voten genutzt. Viele Accounts nutzen Autovoting, teil weise einfach um die Power nicht ungenutzt zu lassen, wenn Sie nicht ausreichend manuell Voten. Man kann bei Hive.vote schließlich einstellen, ab welcher Prozentzahl der Upvote Mana dies geschehen soll.

Ich wollte wissen, wieviel hivePower bereits über 30 Tage ungenutzt ist

```mssql

;WITH total AS ( SELECT SUM( ( (a.vesting_shares - a.delegated_vesting_shares) / dgp.total_vesting_shares * dgp.total_vesting_fund_hive ) ) AS total_hp FROM Accounts a CROSS JOIN DynamicGlobalProperties dgp ), unused AS ( SELECT SUM( ( (a.vesting_shares - a.delegated_vesting_shares) / dgp.total_vesting_shares * dgp.total_vesting_fund_hive ) ) AS unused_hp FROM Accounts a CROSS JOIN DynamicGlobalProperties dgp WHERE a.name NOT IN ( SELECT DISTINCT voter FROM TxVotes WHERE timestamp > GETDATE() - 30 ) ) SELECT u.unused_hp, t.total_hp, (u.unused_hp / t.total_hp) * 100 AS percent_unused FROM unused u CROSS JOIN total t;

```

Mit dieser Abfrage wird die Summer aller HivePower berechnet, die Summer der HivePower aller User, die mind. 30 Tage kein Vote abgegeben haben und dann noch die Prozentzahl.

DynamicGlobalProperties wird dabei verwendet, damit die VestingShares in HivePower umgerechnet werden.

grafik.png

126.568.863,453865 Hivepower gibt es momentan. 28.160.810,499711 Hivepower wurde mind. 30 Tage nicht genutzt.

Das sind 22,493% der HivePower. Das ist schon eine Menge, was sagt ihr dazu?

Posted Using INLEO

#hive-169321 #hive #coding #deutsch #hive-engine #alive #hive-coding #pob #dev #hivepower
Payout: 8.754 HBD
Votes: 167
More interactions (upvote, reblog, reply) coming soon.