Calculate the amount of seized assets in STEEM HF 23
steem·@holger80·
0.000 HBDCalculate 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](https://github.com/steemhardfork/steemhf/blob/hf0.23/libraries/protocol/hardfork.d/0_23.hf) that will be activated on 20 May 2020 14:00:00 UTC. You can read more about this [here](https://steempeak.com/witness-category/@softfork22888/steem-consensus-witness-statement-hardfork-0-23-codename-new-steem). ``` #!/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 type | Token | USD value | | --- | --- | --- | | STEEM | 1454787.735 STEEM | 308441.19 $ | | SBD | 738.021 SBD | 774.92 $ | | STEEM POWER | 22235913.287 STEEM | 4714413.86 $ | | STEEM in savings | 0.099 STEEM | 0.02 $ | | SBD in savings | 26.283 SBD | 27.60 $ | | Pending STEEM | 15.532 STEEM | 3.29 $ | | Pending SBD | 362.621 SBD | 380.75 $ | | Pending STEEM POWER | 13486.216 STEEM | 2859.32 $ | | asset type | Token | USD value | | --- | --- | --- | | Total STEEM | 1454803.366 STEEM | 308444.50 $ | | Total SBD | 1126.925 SBD | 1183.27 $ | | Total STEEM POWER | 22249399.503 STEEM | 4717273.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).
👍 everyoung, sam99, elleok, borislavzlatanov, xiguang, techslut, swedishdragon76, crypto.income, crokkon, steembasicincome, max.curation, imisstheoldkanye, amico, mys, gerber, sbi2, shebe, emrebeyler, nealmcspadden, anikys3reasure, reinaldoverdu, sbi-tokens, citrus-soap, qwertm, steemcityrewards, deathwing, dera123, sbi3, mowemu, someguy123, futile, juancho10, daan, imperfect-one, whd, rafalski, shitsignals, fbslo, roleerob, cadawg, watchlist, beleg, bestboom, freddio, sbi4, gallerani, dlike, triptolemus, bobby.madagascar, merlin7, determine, permaculturedude, battlegames, steem.leo, leo.voter, freddio.sport, asteroids, leo.syndication, one.life, maxuvd, hamsterpoweriii, pataty69, ew-and-patterns, sbi5, sbi6, munhenhos, flyingbolt, blocktvnews, gerbo, abh12345, benedict08, mistia, sbi7, accelerator, mermaidvampire, jimcustodio, jayna, tipsybosphorus, sbi8, plankton.token, saboin, krnel, redouanemez, revisesociology, florino, sbi10, sbi9, boyacun123, triviummethod, nobyeni, onealfa, onetin84, jpphotography, abitcoinskeptic, casberp, whack.science, ilovecanada, hasmez, tarazkp, sashas, pocoto, gagago, iamjohn, babytarazkp, satren, ronaldoavelino, borran, markkujantunen, mcoinz79, avel692, brucutu, brucutu2, jussara, blockchainpeople, danielsaori, sudefteri, carlpei, dalz, thrasher666, brucutu1, tubiska, cyrillo, ticketyboo, ticketywoof, borbina, agent14, kitty-kitty, darthgexe, kahvesizlik, pagliozzo, carioca, monsterjamgold, maxer27, themarkymark, itchyfeetdonica, ultima-alianza, onepercentbetter, slobberchops, kibela, anech512, buildawhale, makerhacks, upmyvote, chronocrypto, ipromote, kimzwarch, cgames, sharker, swisswitness, isnochys, merlion, hungrybear, broxi, blue.rabbit, chrismadcboy2016, fw206, forecasteem, maxuve, bubke, akifane, kgakakillerg, solarwarrior, urdreamscometrue, besheda, condeas, blacklux, alitavirgen, realgoodcontent, lemouth, tipu, goodcontentbot, gmlrecordz, tabea, jerrybanfield, mxzn, bronkong, omstavan, anli, andrepol, candyboy, happy-soul, maxpatternman, lesmouths-travel, inteligente, leighscotford, detetive, a-bot, szf, fengchao, stevescoins, dachcolony, arcange, hatoto, freebornsociety, eikejanssen, mytechtrail, oliverschmid, matschi, losi, dreimaldad, superlao, izzynoel, richie.rich, raspibot, sparschwein, steempearls, ibc, linuxbot, smon-joa, stuntman.mike, flemingfarm, jacekw, cst90, helpyou, monster.oo7, thranax, dyrt88, wildarms65, backinblackdevil, properfraction, spicywoman, likwid, dollarbills, flugschwein, eunsik, promobot, furioslosi, ctl001, kgsupport, raphaelle, gringo211985, nextcolony, lauchmelder, samujaeger, bilpcoinbpc, evernoticethat, oadissin, alinalazareva, ralph-rennoldson, cardboard, hamsa.quality, actifit-devil, bartheek, cryptobrewmaster, josemalavem, boga4, andyjim, curationvoter, kosimoos, eva-julia, thedevilsbride, drakos, curationhelper, circa, ausbitbank, livingfree, slider2990, funnyman, brujas, naltedtirt, longer, holycow2019, vaansteam, linnyplant, tonalddrump, neoxian, raymondspeaks, aamirijaz, joedukeg, digital.mine, calprut, rehan.neox, dagadu, sayee, kissi, captain.kirk, bluerobo, hanke, blue-witness, commonlaw, korinkrafting, patrickulrich, krbecrypto, twoshyguys, choppy, rishabh99946, dkid14, kiokizz, drsensor, approximate, kiobot, sm-lvl1, sm-starter-beta, darhainer, espni, allyson19, logic, vidafitnessfeliz, hivewatchers, steemcleaners, bewithbreath, tegoshei, rmach, stranger27, lrekt01, maxsieg, steempty, chalacuna, fminerten, jphamer1, lowlevel, ledies, dkmathstats, tracer-paulo, canadian-coconut, galberto, dappstats, cryptogambit, gnomed0, brianphobos, rishi556, giftgiver, hextech, brianoflondon, sadvil, bitt.nerd, darkflame, titusfrost, sarakey, fingolfin, atanas007, der-fahrlehrer, creativetruth, vikisecrets, steemvpn, timhorton, movement19, tobetada, fabm, marki99, fennestral, fulltimegeek, delso, fasolo97, yintercept, rubenbitcoin, mes, ottodv, bela29, jeanpi1908, j-p-bs, besuchers, cultus-forex, blockchainstudio, softcaramel, curationstudio, gomdory, steemfinex, hivefinex, judasp, finex, busy.pay, busy.org, scotauto, southernwolf, yakubenko, gulf41, gitplait, tykee, bala41288, jasonliberty, drag33, jkramer, muscara, stickstore, steemcartel, quekery, steemillu, hiq, smooms, ttg, salimbur, lion200, starkerz, tsnaks, mow, m2nnari, steemitmonsters, asgarth, superhardness, anarcist69, gamer0815, afiqsejuk, cryptodeepdive, abrockman, djlethalskillz, dhimmel, scuzzy, ura-soul, thomasinasepulve, sharkthelion, timcliff, nonameslefttouse, mgzayyar, zoidsoft, elite.skeete, duckmast3r, picciridda2, rasibch, cryptojiang, ericahan, hiveupme, fsm-core, fsm-liquid, ucukertz, fuadsm, gcryptog, v4vapid, primeradue, ejemai, familyprotection, forykw, grider123, landshutbrauhaus, romiferns, prameshtyagi, adamdabeast, theguruasia, varunpinto, jamesbattler, demotruk, adwas33, drax, yuriy4, dotwin1981, kaldewei, gabrielatravels, pasle, santigs, softworld, janinachrzan, agawa, teamsteem, walhallo777, acurewa, jaguar18, sportsbuddy, manwojciech, j-stark, anderssinho, nathen007, waqasrizvi, maryincryptoland, fooblic, cpufronz, yoogyart, leynedayana, mandibil, dustsweeper, steemitromney, schlafhacking, puaritanec, nuthman, koyuh8, daio, bib15hash, joshuaetim, techtek, iameden, bobinson, khazrakh, steemseph, planetauto, themightyvolcano, iseeyouvee, ifunnymemes, calist, arabisouri, mrsyria, ahmedsy, tamaralovelace, dkt333, field,