REWARDS
//01_ WHERE REWARDS COME FROM
| SOURCE | WHEN | TO PAPER HOLDERS | TO TREASURY |
|---|---|---|---|
| Win fee | a win paid in full from cash | 50% | 50% |
| Loss fee | a losing close, queue empty | 50% | 50% |
| Liquidation fee | a liquidation, queue empty | 50% | 50% |
| Excess sweep | cash above $75,000, queue empty | 100% | 0% |
Every fee actually charged is split in two: half to paper holders, half to the treasury. The paper share rounds down and the treasury receives the remainder. The 50% share is a constant of the contract.
The excess sweep is not split. When nobody is queued and the house's cash is above $75,000, pushExcess() sends everything above $75,000 to paper holders. Any address can call it, and the keeper does so about once an hour.
//03_ AN EXAMPLE
Total paper is 50,000 and you hold 5,000, a tenth of it. Then:
| EVENT | TO PAPER HOLDERS | YOUR SHARE |
|---|---|---|
| Another trader closes at a $1,000 loss (fee $20) | $10.00 | $1.00 |
| A win of $500 adjusted is paid from cash (fee $10) | $5.00 | $0.50 |
| The keeper sweeps $2,000 of excess | $2,000.00 | $200.00 |
The trader who lost $1,000 then receives paper on a basis of $980, which dilutes everyone from that point on, you included. Paper total grows with every loss; your share of each future distribution is your paper divided by the total at that moment.
//04_ CLAIMING
claimRewards() moves everything you have earned into your available balance, from where you can withdraw it or use it as margin. Rewards do not expire and can be claimed at any time. Only the wallet can claim: a one-click trading key cannot.
Credits: hands from Michelangelo, The Creation of Adam (detail), public domain, via Wikimedia Commons. Marks of the markets and integrations belong to their owners (sources, credits).