You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, the delegator pays a 2% fee on their rewards to the publisher. This fee is deducted from the delegator's reward and added to the publisher's reward.
90
-
89
+
In the example, the delegator pays a 2\% fee on their rewards to the publisher. This fee is deducted from the delegator's reward and added to the publisher's reward.
91
90
92
91
# Example 5: Slashing event on the pool
93
92
94
-
This example demonstrates the impact of a slashing event on the staked PYTH tokens.
93
+
This example demonstrates the impact of a slashing event on the staked PYTH tokens and rewards distributed to both the publisher and the delegator.
In this example, the publisher's stake is slashed by 50%. This means that the publisher's stake is reduced by 79.4 PYTH tokens and the delegator's stake is reduced by 120.6 PYTH tokens.
140
-
141
-
109
+
In this example, the stake is uniformly slashed by 5\%, affecting both the publisher and the delegator. Slashing impact the total stake into the pool, regardless of the Cap.
This section outlines the mathematical representation of the Oracle Integrity Staking (OIS) protocol.
3
+
This section outlines the mathematical representation of the Oracle Integrity Staking (OIS) protocol.
4
4
5
-
As explained in the [implementation](./implementation.mdx) section, every publisher is assigned a staking pool where they can self-stake and to which other stakers can delegate.
5
+
As explained in the [implementation](./implementation.mdx) section, every publisher is assigned a staking pool where they can self-stake and to which other stakers can delegate.
- $M$ is a constant parameter representing the target stake per symbol.
19
-
- $\text{Symbols\_p}$ is the number of symbols published by the publisher $p$.
18
+
- $\text{Symbols\_p}$ is the set of symbols published by the publisher $p$.
20
19
- $n_s$ be the number of publishers for symbol $s$.
21
20
- $Z$ is a constant parameter to control cap contribution from symbols with a low number of publishers.
22
21
23
-
This formula actually ensures that symbols with a lower number of publishers contribute more to the overall cap, while symbols with a higher number of publishers contribute less. This is because the contribution of each symbol is inversely proportional to the number of publishers (or Z, whichever is larger).
24
-
22
+
This formula ensures that symbols with a lower number of publishers contribute more to the overall cap, while symbols with a higher number of publishers contribute less. This is because the contribution of each symbol is inversely proportional to the number of publishers (or Z, whichever is larger).
25
23
26
24
## Reward
27
25
28
-
The reward $R_p$ paid to each pool is calculated as follows:
26
+
The reward $R_p$ distributed to each pool is calculated as follows:
29
27
30
28
$$
31
29
\large{R_p = y \cdot \min(S_p, C_p)}
32
30
$$
33
31
34
32
Where:
35
33
36
-
- $y$ is the yearly cap to the rate of rewards for any pool.
34
+
- $y$ is the cap to the rate of rewards for any pool
37
35
- $S_p$ be the stake assigned to the publisher p pool , made of self-staked amount $S^{p}_{p}$ and delegated stake $S^{d}_{p}$ , or $S_{p} = S^{p}_{p} + S^{d}_{p}$.
38
36
- $C_p$ be the stake cap for the pool assigned to publisher p.
39
37
40
-
The reward is capped at the pool cap, $C_p$, to ensure that publishers and delegators are not over-rewarded. (I don't this this is necessary to mention, but it is a good sanity check)
41
-
42
-
43
-
The total amount of rewards paid to all pools is bound the the same cap relative to the amount of rewards available to the OIS protocol.
38
+
The total amount of rewards distributed to all pools is bound the the same cap relative to the amount of rewards available to the OIS protocol.
44
39
45
40
$$
46
41
\large{\sum_{p \in \text{Publishers}} R_p \leq y \cdot \min(NumSymbols \cdot M, \sum_{p=1}^{P} S_p)}
47
42
$$
48
43
49
-
Where:
44
+
Where:
50
45
51
46
- $NumSymbols$ is the total number of symbols in the system.
52
47
- $P$ is the total number of publishers in the system.
53
48
54
-
55
49
Whereas the reward component relative to the amount self-staked by the publisher $p$ is defined as:
56
50
57
51
$$
@@ -62,10 +56,9 @@ Where:
62
56
63
57
- $R^d_p$ is the reward component relative to the amount delegated to the publisher $p$.
64
58
65
-
66
59
## Slashing
67
60
68
-
Slashing is an important aspect of the OIS protocol to ensure the integrity of the system.
61
+
Slashing is an important aspect of the OIS protocol to ensure the integrity of the system.
69
62
70
63
The slashed amount for each pool is calculated as follows:
71
64
@@ -81,10 +74,7 @@ Where:
81
74
82
75
Here $SL_p$ is uniformly allocated to both the self-staking publisher and delegators in the pool, pro-rata to their respective stake.
83
76
84
-
85
-
86
-
87
-
Subsequently, the rewards received by a publisher and delegators into a pool, net of any slashed amounts can be expressed as below:
77
+
Subsequently, the rewards received by a publisher and delegators into a pool, net of any slashed amounts can be expressed as below:
88
78
89
79
$$
90
80
\large{\Pi^p_p = ( R^p_p + f \cdot R^d_p ) - w \cdot S^p_p}
@@ -94,11 +84,11 @@ $$
94
84
\large{\Pi^d_p = R^d_p - ( f \cdot R^d_p + w \cdot S^d_p )}
95
85
$$
96
86
97
-
Where:
87
+
Where:
98
88
99
89
- $\Pi^p_p$ is the net reward received by the publisher $p$ after slashing.
100
90
- $\Pi^d_p$ is the net reward received by the delegators after slashing.
101
-
- $f$ is the delegation fee charged by the publisher.
91
+
- $f$ is the delegation fee charged by the pool.
102
92
- $w$ is the slashing rate.
103
93
- $S^p_p$ is the amount self-staked by the publisher $p$.
104
94
- $S^d_p$ is the amount delegated to the publisher $p$.
0 commit comments