Difference between revisions of "Maturity modulation"
From Internet Computer Wiki
Line 12: | Line 12: | ||
== Description of the maturity modulation function == | == Description of the maturity modulation function == | ||
− | * At the day of modulation, for each of the last 29 days determine the 30-day moving average ICP price, which is displayed on the Internet Computer dashboard. Label these | + | * At the day of modulation, for each of the last 29 days determine the 30-day moving average ICP price, which is displayed on the Internet Computer dashboard. Label these a<sub>1</sub> through a<sub>29</sub>, where a<sub>1</sub> denotes the average rate on the previous day, a<sub>2</sub> denotes the rate two days ago and so on. The 30-day moving average prices are used because they exhibit less variance than day-to-day prices. |
* Compute the relative 7-day return for each of the last four weeks. Thus, | * Compute the relative 7-day return for each of the last four weeks. Thus, | ||
** w<sub>1</sub> = (a<sub>1</sub> - a<sub>8</sub>) / a<sub>8</sub>, | ** w<sub>1</sub> = (a<sub>1</sub> - a<sub>8</sub>) / a<sub>8</sub>, | ||
− | ** | + | ** w<sub>2</sub> = (a<sub>8</sub> - a<sub>15</sub>) / a<sub>15</sub>, |
− | ** | + | ** w<sub>3</sub> = (a<sub>15</sub> - a<sub>22</sub>) / a<sub>22</sub>, |
− | ** | + | ** w<sub>4</sub> = (a<sub>22</sub> - a<sub>29</sub>) / a<sub>29</sub>. |
− | * The values | + | * The values w<sub>1</sub>, w<sub>2</sub>, w<sub>3</sub>and w<sub>4</sub> are bounded from -0.05 to 0.05 by clipping values to the limits of this range, i.e., capping by 0.05 and flooring by -0.05. |
− | * Take the average w = (clipped( | + | * Take the average w = (clipped(w<sub>1</sub>) + clipped(w<sub>2</sub>) + clipped(w<sub>3</sub>) + clipped(w<sub>4</sub>)) / 4. |
* The resulting value w is a number between -5% and 5% that determines modulation. | * The resulting value w is a number between -5% and 5% that determines modulation. | ||
* The maturity amount x is converted to x * (1+w) units of ICP. | * The maturity amount x is converted to x * (1+w) units of ICP. | ||
* The maturity modulation function is updated once a day. | * The maturity modulation function is updated once a day. |
Revision as of 15:08, 15 July 2022
Background and goal
- The maturity of a neuron is not a tradable asset, it is an attribute of a neuron. The decentralized governance of the Internet Computer can change the treatment of maturity at any time.
- If a user wants to generate income from maturity, he/she needs to burn maturity to create new ICP via spawning a neuron which is a non-deterministic process.
- The maturity modulation function introduces uncertainty in the creation of ICP from maturity. This article explains how the maturity modulation function works.
Spawning maturity via the maturity modulation function
- The user triggers spawn maturity. A new neuron will be immediately spawned; however, this newly spawned neuron will have no ICP at start, only maturity.
- Spawned neurons will have a dissolve delay of 7 days and will be set to dissolving at the time of spawning.
- After 7 days when the neuron is dissolved, the amount of ICP, modulated by the function introduced below, will be minted from the neuron's maturity and be available to the user.
Description of the maturity modulation function
- At the day of modulation, for each of the last 29 days determine the 30-day moving average ICP price, which is displayed on the Internet Computer dashboard. Label these a1 through a29, where a1 denotes the average rate on the previous day, a2 denotes the rate two days ago and so on. The 30-day moving average prices are used because they exhibit less variance than day-to-day prices.
- Compute the relative 7-day return for each of the last four weeks. Thus,
- w1 = (a1 - a8) / a8,
- w2 = (a8 - a15) / a15,
- w3 = (a15 - a22) / a22,
- w4 = (a22 - a29) / a29.
- The values w1, w2, w3and w4 are bounded from -0.05 to 0.05 by clipping values to the limits of this range, i.e., capping by 0.05 and flooring by -0.05.
- Take the average w = (clipped(w1) + clipped(w2) + clipped(w3) + clipped(w4)) / 4.
- The resulting value w is a number between -5% and 5% that determines modulation.
- The maturity amount x is converted to x * (1+w) units of ICP.
- The maturity modulation function is updated once a day.