avalon
avalon copied to clipboard
Multi comma separated tag functionality.
Multi tag functionality. User can submit comma separated tags. For each tag, the total vote will be distributed equally. Only the first tag will get the extra vote amount. The change haven't extensively tested yet, should be tested on testnet first.
Example:
content.votes[i].tag = "hike, hiking, hiker"
totalTagVt = 313
nt = 3
topTags[0] = {tag: "hike", vt: 313/3 + 313%3 = 104 + 1 = 105} // hike
totalTagVt = 313 - (313%3) = 313 - 1 = 312
topTags[1] = {tag: "hiking", vt: 312/3 + 312%3 = 104} // hiking
topTags[2] = {tag: "hiker", vt: 312/3 + 312%3 = 104} // hiker
105 + 104 + 104 = 313 total
This will have to be a soft-fork that only API node operators need to decide. Also I think it should only apply to first vote by author.