Initial Contract Amount:
The initial contract amount is set to 1000.
Index Calculation Formula:
I n d e x t = ∑ i = 1 m t P i ∗ N i t D i v i s o r t ∗ I n d e x i n i t i a l ( t ≥ 1 ) Index_{t}=\frac{\sum_{i=1}^{m^t}P_{i}*N_{i}^t}{Divisor_{t}}*Index_{initial}\ \ (t\ge1) I n d e x t = D i v i so r t ∑ i = 1 m t P i ∗ N i t ∗ I n d e x ini t ia l ( t ≥ 1 ) D i v i s o r t = D i v i s o r t − 1 ∗ ∑ i = 1 m P i ∗ N i t ∑ k = 1 g P k ∗ N k t − 1 Divisor_{t}=Divisor_{t-1}*\frac{\sum_{i=1}^{m}P_{i}*N_{i}^t}{\sum_{k=1}^{g}P_{k}*N_{k}^{t-1}} D i v i so r t = D i v i so r t − 1 ∗ ∑ k = 1 g P k ∗ N k t − 1 ∑ i = 1 m P i ∗ N i t where:
I n d e x t Index_{t} I n d e x t : Index of the t t h t^{th} t t h period
P i P_{i} P i : The current price of the i t h i^{th} i t h constituent
N i t N_{i}^t N i t : At time t t t , the amount of the i t h i^{th} i t h constituent in the index
I n d e x i n i t i a l Index_{initial} I n d e x ini t ia l : Initial contract amount of the index, I n d e x i n i t i a l Index_{initial} I n d e x ini t ia l = 10000
D i v i s o r t : Divisor_{t}: D i v i so r t : A stabilizer that ensures a stable and continuous change of the index and eliminates the impact of index rebalancing. D i v i s o r 1 = I n d e x i n i t i a l Divisor_{1}=Index_{initial} D i v i so r 1 = I n d e x ini t ia l
Index Calculation Process:
Set the initial index contract amount to 1000;
Determine the index constituents;
Determine the amount of each constituent such that: ∑ i = 1 m P i ∗ N i = I n d e x i n i t i a l \sum_{i=1}^mP_{i}*N_{i}=Index_{initial} ∑ i = 1 m P i ∗ N i = I n d e x ini t ia l
Since the price of each token P i P_{i} P i is already known, we need to determine the weight of each token W i W_{i} W i to calculate N i N_{i} N i : I n d e x i n i t i a l ∗ W i = P i ∗ N i Index_{initial}*W_{i}=P{i}*N{i} I n d e x ini t ia l ∗ W i = P i ∗ N i . There are various methods to determine W i W_{i} W i
Equal weights: 1 m \frac{1}{m} m 1
Market cap weighted: w i = M a r k e t V a l u e i ∑ M a r k e t V a l u e w_{i}=\frac{MarketValue_{i}}{\sum MarketValue} w i = ∑ M a r k e t Va l u e M a r k e t Va l u e i
A Market Cap Weighted Example
Initial Contract Amount: 1000.
Constituent Market Cap Sqrt Market Cap Current Price
w i = M a r k e t V a l u e i ∑ M a r k e t V a l u e w_{i}=\frac{\sqrt{MarketValue_{i}} }{\sum MarketValue} w i = ∑ M a r k e t Va l u e M a r k e t Va l u e i
BTC :
w 1 = 940542 940542 + 667162 + 295874.2 + 216731.2 + 112353 = 940542 2232662.4 = 0.4213 w_{1}=\frac{940542}{940542+667162+295874.2+216731.2+112353}=\frac{940542}{2232662.4}=0.4213 w 1 = 940542 + 667162 + 295874.2 + 216731.2 + 112353 940542 = 2232662.4 940542 = 0.4213
N 1 1 = 1000 ∗ w 1 p 1 = 1000 ∗ 0.4213 46633.22 = 0.00903 N_1^1=\frac{1000*w_1}{p_1}=\frac{1000*0.4213}{46633.22}=0.00903 N 1 1 = p 1 1000 ∗ w 1 = 46633.22 1000 ∗ 0.4213 = 0.00903
ETH :
w 2 = 667162 2232662.4 = 0.2988 w_{2}=\frac{667162}{2232662.4}=0.2988 w 2 = 2232662.4 667162 = 0.2988
N 2 1 = 1000 ∗ w 2 p 2 = 1000 ∗ 0.2988 3805.21 = 0.07852 N_2^1=\frac{1000*w_2}{p_2}=\frac{1000*0.2988}{3805.21}=0.07852 N 2 1 = p 2 1000 ∗ w 2 = 3805.21 1000 ∗ 0.2988 = 0.07852
BNB :
w 3 = 667162 2232662.4 = 0.1325 w_{3}=\frac{667162}{2232662.4}=0.1325 w 3 = 2232662.4 667162 = 0.1325
N 3 1 = 1000 ∗ w 3 p 3 = 1000 ∗ 0.1325 535.24 = 0.24755 N_3^1=\frac{1000*w_3}{p_3}=\frac{1000*0.1325}{535.24}=0.24755 N 3 1 = p 3 1000 ∗ w 3 = 535.24 1000 ∗ 0.1325 = 0.24755
SOL:
w 4 = 216731.2 2232662.4 = 0.0971 w_{4}=\frac{216731.2}{2232662.4}=0.0971 w 4 = 2232662.4 216731.2 = 0.0971
N 4 1 = 1000 ∗ w 4 p 4 = 1000 ∗ 0.0971 155.67 = 0.62375 N_4^1=\frac{1000*w_4}{p_4}=\frac{1000*0.0971}{155.67}=0.62375 N 4 1 = p 4 1000 ∗ w 4 = 155.67 1000 ∗ 0.0971 = 0.62375
MATIC:
w 5 = 112353 2232662.4 = 0.0503 w_{5}=\frac{112353}{2232662.4}=0.0503 w 5 = 2232662.4 112353 = 0.0503
N 5 1 = 1000 ∗ w 5 p 5 = 1000 ∗ 0.0503 1.81 = 27.79006 N_5^1=\frac{1000*w_5}{p_5}=\frac{1000*0.0503}{1.81}=27.79006 N 5 1 = p 5 1000 ∗ w 5 = 1.81 1000 ∗ 0.0503 = 27.79006
Constituent Market Cap Sqrt Market Cap Current Price Weight Quantity
Index Calculation: I n d e x 1 = 0.00903 ∗ B T C + 0.07852 ∗ E T H + 0.24755 ∗ B N B + 0.62376 ∗ S O L + 27.7901 ∗ M A T I C Index_{1}=0.00903*BTC+0.07852*ETH+0.24755*BNB+0.62376*SOL+27.7901*MATIC I n d e x 1 = 0.00903 ∗ BTC + 0.07852 ∗ ET H + 0.24755 ∗ BNB + 0.62376 ∗ SO L + 27.7901 ∗ M A T I C