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
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.
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:
This is curious, because the bot says in other chats it cannot retrieve any current information.
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.