You are viewing a single comment's thread from:

RE: Just for fun: Writing python code with ChatGPT to get a Steem account's current voting power

in #programming2 years ago

Very astonishing. On the one hand, that the bot even knows what "voting power" is and how it is determined.... But even more remarkable is the interaction with the adjustments in the code. In the end, you get the desired result, even if the bot unfortunately overlooked that the account already contains the entry last_vote_time .
This saves the part from

Get the account's history

and the following loop.

Unfortunately, the result is only almost correct :-)
When calculation the adjusted_voting_power the voting_power must first be divided by 100.

Conclusion: The bot already offers good support, but the results still need to be checked.

Sort:  

A funny thing is that after I posted this, I tried a new conversation to see if I could get a correct answer in a single question with more precise wording. I didn't, but that time the bot knew about "last_vote_time".

I gave it a break on dividing by 100 because the blockchain works with integers, so there may be cases where it's convenient to just leave it the way it is.

I definitely agree with your conclusion:

Conclusion: The bot already offers good support, but the results still need to be checked.

that time the bot knew about "last_vote_time".

This is curious, because the bot says in other chats it cannot retrieve any current information.

I gave it a break on dividing by 100

Yes, you can do that. I also find integers more "beautiful". But in this case, the other summand must be multiplied with 100. Otherwise the result is not correct...

Ah, yes, right. I had overlooked that mismatch.

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 54274.36
ETH 2279.16
USDT 1.00
SBD 2.33