You are viewing a single comment's thread from:
RE: More unfuckers! And a quick tutorial video.
great little tutorial @aggroed, and great job bringing over @daniarnold and her UnFuckers! :)
One thing though... Reputation is derived from data directly tracked by the STEEM blockchain in the "author.reputation" (from the json object returned by get_state).
Also, just for reference, here's some javascript code I had derived to convert "author.reputation" to the numeric format we're used to seeing on STEEMIT:
function calcSteemitRep(rawRep) {
if (rawRep == null) return rawRep;
const neg = rawRep < 0;
rawRep = Math.abs(rawRep);
var out = Math.log10(rawRep);
if (isNaN(out)) out = 0;
out = Math.max(out - 9, 0); // @ -9, $0.50 earned is approx magnitude 1
out = (neg ? -1 : 1) * out
out = (out * 9) + 25 // 9 points per magnitude. center at 25
// base-line 0 to darken and < 0 to auto hide (grep rephide)
return Math.floor(out);
}
Right, but that calculation itself isn't stored on teh blockchain. Just the data they use to make it. So, it's coming through condenser rather than steemd.