I have a disscussion with @logxing about some confuse of this problem, if some one want to implement an AGS browser:
What algorithm should be choosed to decide which address be rewarded AGS?
In this post, toast said the biggest input address is choosed:
Two options:
1) Just send from multiple addresses. I3 will pick the one with the biggest input for each transaction and reward everything there.
2) Create a separate wallet, send everything to one address in that wallet, then send from that wallet.
But in bytemaster's another post, mentioned that it is random:
Suppose this guy owns all the input addresses, how are the AGS shared when there are multiple inputs? Equally divided among all the inputs or proportional to the input amounts? Although this transaction looks much more like from an online wallet, in which case the online wallet is going to get the AGS, I guess.
Another question is I suppose it should be valid to donate from a single address multiple times, and doesn't matter on a single day or multiple days. If on a single day then the total should be counted towards the shares of that day, and on multiple days then each day is just individually calculated. Please confirm if this is correct. Thanks.
We assume all input addresses belong to the same user in the same wallet. We thus randomly pick one to assign the full donation to.
Yes, each day is individually calculated.
So, which one's algorithm is right? And I think should remind the community about the reasonable but non-public assummation that all input addresses belong to the same user in the same wallet. Most people didn't notice that i think.