STEEM SCOT Voting Power Viewer Update: Est Value / Market Prices / Delegation Info / Faster VP loading + Precision fix

avatar
(Edited)

Repository

https://github.com/economicstudio/vp

Let me first show basic usage and information and then introduce updates.

Usage
SCOT additional Information
  • Staked: Staked amount (like SP)
  • Unstaked: Unstaked amount (like STEEM) But excluded if used for market order
  • PendingUnstaked: Pending unstake amount (like powerdown)
  • PendingClaim: Unclaimed amount
  • Total: Total (market order amount is excluded)
Keychain support
  • Claim, Stake, and Donate :)
Steemconnect support
  • Claim (posting key)
  • I feel uncomfortable to require users to enter active key via SC2. Once SC3 is fully tested, I'll add SC support for claim.

New Features: Estimated Value

Commit: https://github.com/economicstudio/vp/commit/ac4088c0ddc530933e214d8f631663d0bc929449

  • As in the above picture, now it shows estimated value in two ways
    • in STEEM
    • in USD (not SBD)

New Features: Market Prices

Commit: https://github.com/economicstudio/vp/commit/ac4088c0ddc530933e214d8f631663d0bc929449

  • It also shows market prices of SCOT and STEEM
    • last SCOT price in STEEM
    • last STEEM price in USD

Code excerpt for STEEM Price

STEEM Price is queried from postpromoter.net API which is also used by Steem Engine, so I believe this API is quite stable.

Code excerpt for SCOT Price

SCOT price can be queried by using SE API with findOne("market", "metrics", { symbol: SCOT }.

New Features: Delegation amount info

Commit: https://github.com/economicstudio/vp/commit/19b50888a8ff199b820be9618108c306a8f9e7cf

Now when there are delegations, it shows as follows (+: In, -: Out):
Staked: 100000.000 (+50000.000-0.000)

New Features: Faster VP loading

Commit: https://github.com/economicstudio/vp/commit/83302496d143a720f10a2069f885b8de6673a23f

  • Now I separated VP loading from balance calculations, so VP loading speed is enhanced.

Now VP loading is done in its promise prmSCOT. Likewise, when all necessary information is ready, the balance info is updated.

Bug Fixes: Pending Claim precision

Commit: https://github.com/economicstudio/vp/commit/83302496d143a720f10a2069f885b8de6673a23f

  • Each SCOT may have different precisions.
  • Now it shows the precisions of Pending Claim correctly.

precision information can be got from findOne("tokens", "tokens", { symbol: SCOT }

Update: Staking JSON format update

Commit: https://github.com/economicstudio/vp/commit/098e7435dfa1c6911bce4766a215015fd8ed5467

  • Steem Engine Staking JSON format has changed
  • Now to field is required.

GitHub Account

https://github.com/economicstudio



0
0
0.000
18 comments
avatar

u should add delegated stake

0
0
0.000
avatar

Oh I forgot that now delegations are enabled. Done!

Staked: 100000.000 (+50000.000-0.000)

Thanks for pointing out that.

0
0
0.000
avatar

NICE u are fast! calculate it into estimated value now :D

0
0
0.000
avatar

No problem and thanks again :)

but delegationIN amount shouldn't be included in the estimated value. delegation is delegation :) Not yours. OUT is still included.

Steemit Wallet and other wallet for SP is also calculated that way.

0
0
0.000
avatar

dunno, my delegation out is not included in estimated, maybe I need to clear caches

0
0
0.000
avatar
(Edited)

Oh I see, you're right. Steem Engine's stake seems "kind of" effective stake already, which is a bad naming to me. their stake = real staked - Out. (but not + In), so in some sense, stake that can be delegated.

Based on https://www.palnet.io/@gerber/transfers that's correct.

Done!

0
0
0.000
avatar

very cool man, really going to help im starting to go loopy trying to keep track of all thas going on in my poor account

0
0
0.000
avatar

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

0
0
0.000
avatar

Hi @helo, thank you for your review. next time, i'll use the compare link, as you suggested.

But console.log is still needed, I think. Scotbot is still very new and changing frequently, so easy report from some advanced users and for me, it's good to keep. But I'll remove quite stable ones next time. (Or make a dev version file separately.) Thanks again.

0
0
0.000
avatar

@blockchainstudio You have received a 100% upvote from @botreporter because this post did not use any bidbots and you have not used bidbots in the last 30 days!

Upvoting this comment will help keep this service running.

0
0
0.000