What I'm wondering is when is the commission charged? I haven't noticed it going out of my investment each time someone bets, but maybe it does.
I just played about with this to see how it works. I made notes about what happened, and bolded the 4 things that seemed weird or wrong:
I referred myself, deposited 0.0099 on the new account ("Player-470"), and played a little.
At first I divested fully on my main account so I could see the effect of just the referral payments. I noticed that bets of 1k satoshis earned me nothing. 0.5% of 1k is 5 satoshis, and 10% of that is 0.5 satoshis. I made 10 separate bets of 1k satoshis on the referred account and earned nothing at all for them on the main account.
I guess payments are rounded, rather than having the sub-satoshi payments build up.
I made 4 bets of 2k satoshis and 3 bets of 4k satoshis. The main account earned a total of 10 satoshis for those bets, as expected. (4*2k + 3*4k = 20k; 0.5% of 20k is 100; 10% of 100 is 10). One thing that struck me as odd is that the
affiliate payments were added to the main accounts 'invested' figure, not its balance. Even though the invested figure was zero and the balance wasn't. I would expect the affiliate payments to go into the balance, not the bankroll.
Then I invested on the main account. I worked out how much I needed to invest to become exactly 10% of the site's bankroll, and invested that amount, to make the calculations easier. I was invested 2.47165911 BTC and the site bankroll was 24.71659104 BTC. I was "10.00000002% of the total site investment".
The referred account bet 2k satoshis and lost; 0.5% of 2k is 10 satoshis; the commission and affiliate payment should both be 1 satoshi, and the 10% investor should get 200 satoshis.
On the main account
I see my investment change twice:
2.47165911 -> 2.47166110 -> 2.47166111
The first change adds 199 satoshis, the 2nd adds 1 satoshi. It seems the commission was taken off first, and the affiliate payment was added later.
Then the referred account bet 10k satoshis and lost again; commission and affiliate payments should be 5 satoshis, and 10% investor should get 1k satoshis.
This time I only see my investment change once:
2.47166111 -> 2.47167116
It has added on 1005 satoshis. That's 10% of the new site profit, and the affiliate payment.
It looks like no commission was charged. That's probably a bug?The referred account made one final bet of 20k satoshis and won 20k satoshis. Commission and affiliate payment should be 10 satoshis, the investor should lost 2k satoshis.
My investment changes once again:
2.47167116 -> 2.47165125
I have lost 1991 satoshis. I'm not sure why - I should have lost 2000. Maybe since I'm a fraction over 10% of the bankroll, the loss cost me 2001 satoshis, then the affiliate payment of 10 was added, and the commission was forgotten again? That would make 1991 total.