For anyone who wants to know how to use HiveSQL to obtain the KE value that is now displayed on Peakd, here is the SQL statement.
I don't think much of this value because it can be manipulated far too easily, but if anyone needs it for anything, now they know how to do it.
WITH globals AS (
SELECT
total_vesting_fund_hive,
total_vesting_shares
FROM
dynamicglobalproperties
) ,
converted AS (
SELECT
a.name,
(a.posting_rewards + a.curation_rewards) / 1000.0 AS total_rewards_hive,
(a.vesting_shares * g.total_vesting_fund_hive / g.total_vesting_shares) AS hp
FROM
accounts a
CROSS JOIN globals g
)
SELECT
name,
total_rewards_hive,
hp,
ROUND(total_rewards_hive / NULLIF(hp, 0), 4) AS KE
FROM
converted
where name ='hive-coding'
The result is the username, the rewards received, the Hivepower, and the KE.
The KE at hive-coding is over 1 because I used the liquid rewards on my other account for powerups.
Translated with DeepL.com (free version)
Für alle, die wissen wollen, wie Sie mit HiveSQL den KE Wert erhalten, der inzwischen bei Peakd angezeigt wird, hier die SQL-Anweisung.
Ich halte zwar nichts von diesem Wert, weil er viel zu einfach manipuliert werden kann, aber wenn jemand diesen für irgendwas benötigt, dann weiß er nun wie es geht.
WITH globals AS (
SELECT
total_vesting_fund_hive,
total_vesting_shares
FROM
dynamicglobalproperties
),
converted AS (
SELECT
a.name,
(a.posting_rewards + a.curation_rewards) / 1000.0 AS total_rewards_hive,
(a.vesting_shares * g.total_vesting_fund_hive / g.total_vesting_shares) AS hp
FROM
accounts a
CROSS JOIN globals g
)
SELECT
name,
total_rewards_hive,
hp,
ROUND(total_rewards_hive / NULLIF(hp, 0), 4) AS KE
FROM
converted
where name ='hive-coding'
Ihr erhaltet als Ergebnis den Usernamen, die erhaltenen Rewards, die Hivepower und den KE.
Der KE bei hive-coding ist über 1, weil ich die flüssigen Rewards auf meinem anderen Account für Powerups genutzt hatte.
Posted Using INLEO
Thanks for your contribution 🙂