Calculate the amount of seized assets in STEEM HF 23

Here is a small script for calculating the total sum of all seized assets in the Steem HF 23 (accounts are copied from github that will be activated on 20 May 2020 14:00:00 UTC.

You can read more about this here.

#!/usr/bin/python
from beem import Steem
from beem.account import Account

if __name__ == "__main__":

    stm = Steem(node="https://api.steemit.com")
    accounts = {
      "abusereports",
      "berniesanders",
      "kingdong",
      "nextgencrypto",
      "ngc",
      "ozchartart",
      "sirvotesalot",
      "sockpuppet",
      "thecyclist",
      "xx0xx",
      "xxxxxxxxxx",
      "z8teyb289qav9z",
      "agent14",
      "curatorhulk",
      "dhenz",
      "drbanner",
      "gokuisreal",
      "johnmadden",
      "realself",
      "theycallmedan",
      "arsahk",
      "blocktrades",
      "darthknight",
      "kevtorin",
      "kriborin",
      "lessys",
      "acidyo",
      "ats-david",
      "ausbitbank",
      "bittrix",
      "clappy",
      "drakos",
      "fefemz",
      "freedom",
      "gtg",
      "howo",
      "jawnz",
      "klobu",
      "likwid",
      "liondani",
      "neoxian",
      "netuoso",
      "ocd-witness",
      "pfunk",
      "pharesim",
      "roelandp",
      "roundbeargames",
      "sooty",
      "steempress",
      "themarkymark",
      "therealwolf",
      "timetickertickin",
      "transisto",
      "znnuksfe",
      "mottler",
      "mottler-1",
      "smooth",
      "smooth.witness",
      "smooth-a",
      "smooth-b",
      "smooth-c",
      "smooth-d",
      "smooth-e",
      "smooth-f",
      "safari"
    }

    null = Account("null", blockchain_instance=stm)
    seized_assets = null.balances
    for account_name in accounts:
        account = Account(account_name, blockchain_instance=stm)
        for asset_type in ['available', 'savings', 'rewards', 'total']:
            for index in range(len(seized_assets[asset_type])):
                seized_assets[asset_type][index] += account.balances[asset_type][index]
        
    USD_STEEM = 0.212018
    USD_SBD = 1.05
    print("Seized assets:")
    print("| asset type | Token | USD value")
    print("| --- | --- | --- |")
    print("| STEEM | %.3f STEEM | %.2f $ |" % (float(seized_assets["available"][0]), float(seized_assets["available"][0]) * USD_STEEM))
    print("| SBD | %.3f SBD | %.2f $ |" % (float(seized_assets["available"][1]), float(seized_assets["available"][1])* USD_SBD))
    print("| STEEM POWER | %.3f STEEM | %.2f $ |" % (stm.vests_to_sp(float(seized_assets["available"][2])), stm.vests_to_sp(float(seized_assets["available"][2])) * USD_STEEM))
    print("| STEEM in savings | %.3f STEEM | %.2f $ |" % (float(seized_assets["savings"][0]), float(seized_assets["savings"][0]) * USD_STEEM))
    print("| SBD in savings | %.3f SBD | %.2f $ |" % (float(seized_assets["savings"][1]), float(seized_assets["savings"][1])* USD_SBD))
    print("| Pending STEEM | %.3f STEEM | %.2f $ |" % (float(seized_assets["rewards"][0]), float(seized_assets["rewards"][0]) * USD_STEEM))
    print("| Pending SBD | %.3f SBD | %.2f $ |" % (float(seized_assets["rewards"][1]), float(seized_assets["rewards"][1])* USD_SBD))
    print("| Pending STEEM POWER | %.3f STEEM | %.2f $ |" % (stm.vests_to_sp(float(seized_assets["rewards"][2])), stm.vests_to_sp(float(seized_assets["rewards"][2])) * USD_STEEM))
    print("| Total STEEM | %.3f STEEM | %.2f $ |" % (float(seized_assets["total"][0]), float(seized_assets["total"][0]) * USD_STEEM))
    print("| Total SBD | %.3f SBD | %.2f $ |" % (float(seized_assets["total"][1]), float(seized_assets["total"][1])* USD_SBD))
    print("| Total STEEM POWER | %.3f STEEM | %.2f $ |" % (stm.vests_to_sp(float(seized_assets["total"][2])), stm.vests_to_sp(float(seized_assets["total"][2])) * USD_STEEM))

    total_sum_usd = float(seized_assets["total"][0]) * USD_STEEM
    total_sum_usd += float(seized_assets["total"][1]) * USD_SBD
    total_sum_usd += stm.vests_to_sp(float(seized_assets["total"][2])) * USD_STEEM
    print("Total sum in USD: %.2f $ " % total_sum_usd)

The results are:

asset typeTokenUSD value
STEEM1454787.735 STEEM308441.19 $
SBD738.021 SBD774.92 $
STEEM POWER22235913.287 STEEM4714413.86 $
STEEM in savings0.099 STEEM0.02 $
SBD in savings26.283 SBD27.60 $
Pending STEEM15.532 STEEM3.29 $
Pending SBD362.621 SBD380.75 $
Pending STEEM POWER13486.216 STEEM2859.32 $
asset typeTokenUSD value
Total STEEM1454803.366 STEEM308444.50 $
Total SBD1126.925 SBD1183.27 $
Total STEEM POWER22249399.503 STEEM4717273.18 $

This means that in total Steem assets worth 5026900.96 $ will be seized on 20 May 2020 14:00:00 UTC and moved to https://steemd.com/@community321
(When the Steem HF is applied by the majority of Steem witnesses).

H2
H3
H4
3 columns
2 columns
1 column
52 Comments
Ecency