STEEM POWER retention ratio of top 50 witnesses

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/steem-power-retention-ratio-of-top-50-witnesses Hello, this is @joviansummer(witness: @jswit). Some time ago there was a bit of discussion on discord witness chanel about witnesses' power-down/cashing-out. So out of curiosity I just checked current ratio of witnesses' own STEEM POWER(VESTS) and all-time producer reward(VESTS). The ratio is calculated by the following simple formula: ratio(%) = account's own SP(MV) / all-time producer reward SP(MV) * 100% Ratio value less than 100% indicates power-down. If witness does additional power-up or gets other types of reward(e.g., curation reward), the ratio may exceed 100%. This does not take witness' other accounts into consideration. All-time producer reward data is from @steemchiller's SDS API. Here is the result: rank account own_sp prod_sp ratio 1 justyy 2188.411MV 1284.2MV 170.41% 2 steemchiller 982.134MV 124...

파이썬 beem에서 스팀파워(SP)를 VEST값으로 변환

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/beem-sp-vest


스팀 블럭체인에서 스팀파워(SP)는 VEST라는 단위로 바뀌어서 처리됩니다. 스팀파워는 사람이 읽기에 편리하지만 정확한 비율 계산을 위해서 내부적으로 처리하는 단위는 자리수가 훨씬 많은 VEST입니다. 관련 내용은 이전 포스팅을 참고하시기 바랍니다. 아래의 링크입니다.

파이썬 beem을 이용해서 현재 스팀파워(SP) 확인하기

위의 포스트에서는 계정의 스팀파워를 확인하기 위해 VEST값을 스팀파워로 변환하는 과정이 있는데, 여기에서는 반대로 스팀파워를 VEST값으로 변환하는 방법을 정리합니다. Steem 객체에서 sp_to_vests()라는 함수를 제공하기 때문에 간편하게 변환할 수 있습니다. 인자(argument)로 입력하는 스팀파워와 반환되는 VEST값 모두 부동소수점(float) 형식입니다.

예제 코드는 아래와 같습니다.

from beem import Steem

node_list = ["https://api.steemit.com"]
s = Steem(node=node_list)

# 10.5sp를 VEST로 변환하여 변수 vests_val에 할당
sp_val = 10.5
vests_val = s.sp_to_vests(sp_val)

@joviansummer의 스팀 프로젝트

스팀 증인노드를 운영중입니다. @jswit에 증인투표해 주시면 감사하겠습니다.
(https://steemitwallet.com/~witnesses)

jswit 증인 노드 프로젝트를 시작합니다.

jsup 업보팅(upvoting) 서비스 소개

jsup 수혜자 지정 기능 추가

jSTEEM 프로젝트 - 텔레그램 챗봇으로 구현하는 스팀 블럭체인 탐색기

STEEM.NFT - 디지털 아트 보존 프로젝트

Posted through the AVLE Dapp (https://avle.io)

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기