> For the complete documentation index, see [llms.txt](https://sleep-be.gitbook.io/sleepbe-whitepaper-new/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sleep-be.gitbook.io/sleepbe-whitepaper-new/earning-mechanics/melatonin-system.md).

# Melatonin System

Melatonin Cap restrains the number of Melatonin. Once in every 24 hours the user is restored with Melatonin equal to 100% of the Max Melatonin Cap (**Melatonin Refill** counts according to the user's sleep time and will be refilled 20 hours after the user starts the Sleep to Earn process). The Sleep to Earn process begins with one Sleeping Genie and 2 Melatonin Caps, which can be growth by holding more Sleeping Genies according to the following calculation:

| Sleeping Genie No. | Melatonin | Melatonin used / sleep hour | REMN / Melatonin | Total REMN earning |
| ------------------ | --------- | --------------------------- | ---------------- | ------------------ |
| 1                  | 7         | 1                           | 0.5              | 3.5                |
| 3                  | 14        | 2                           | 0.5              | 7                  |
| 9                  | 31.5      | 4.5                         | 0.5              | 15.75              |
| 15                 | 42        | 6                           | 0.5              | 21                 |
| 30                 | 70        | 10                          | 0.5              | 35                 |

Users holding higher Quality Sleeping Genie will have Bonus Melatonin accumulated excess Melatonin Cap: &#x20;

1. Holding an Uncommon Sleeping Genie: +1 Melatonin
2. Holding a Rare Sleeping Genie: +2 Melatonin&#x20;
3. Holding an Epic Sleeping Genie: +3 Melatonin&#x20;
4. Holding a Legendary sleeping Genie: +4 Melatonin

#### EXAMPLE 1:

1 Uncommon Sleeping Genie + 1 Common Sleeping Genie = 3 Total Melatonin (2 Base Melatonin + 1 Bonus)

#### EXAMPLE 2:

2 Rare Sleeping Genie + 1 Common Sleeping Genie = 8 Total Melatonin (4 Base Melatonin + 4 Bonus)
