Difference between revisions of "Maturity modulation"

From Internet Computer Wiki
Jump to: navigation, search
Line 23: Line 23:
 
* 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.
 +
 +
== Example ==
 +
* On Feb 1, 2022, the modulation function is 0.73% which is the average of the relative weekly returns w<sub>1</sub> = -4.59%,  w<sub>2</sub> =-0.63%,  w<sub>3</sub>=5.00%, w<sub>4</sub> = 3.13%.
 +
* If a user disburses on that day (day of transfer) 100 maturity, then this will result in 100.73 ICP.

Revision as of 15:10, 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.

Example

  • On Feb 1, 2022, the modulation function is 0.73% which is the average of the relative weekly returns w1 = -4.59%, w2 =-0.63%, w3=5.00%, w4 = 3.13%.
  • If a user disburses on that day (day of transfer) 100 maturity, then this will result in 100.73 ICP.