Skip to content

Commit e937397

Browse files
committed
pre-commit
1 parent 58440b8 commit e937397

File tree

2 files changed

+98
-15
lines changed

2 files changed

+98
-15
lines changed

pages/home/oracle-integrity-staking/reward-examples.mdx

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,20 @@ $$
3636
\end{aligned}
3737
$$
3838

39-
<Image src={OIS_Rewards_Example_Light_1} alt="Example 1" sizes="100%" placeholder="blur" className="dark:hidden" />
40-
<Image src={OIS_Rewards_Example_Dark_1} alt="Example 1" sizes="100%" placeholder="blur" className="hidden dark:block" />
41-
39+
<Image
40+
src={OIS_Rewards_Example_Light_1}
41+
alt="Example 1"
42+
sizes="100%"
43+
placeholder="blur"
44+
className="dark:hidden"
45+
/>
46+
<Image
47+
src={OIS_Rewards_Example_Dark_1}
48+
alt="Example 1"
49+
sizes="100%"
50+
placeholder="blur"
51+
className="hidden dark:block"
52+
/>
4253

4354
## Example 2: Publisher and Delegator Stake
4455

@@ -61,8 +72,20 @@ $$
6172
\end{aligned}
6273
$$
6374

64-
<Image src={OIS_Rewards_Example_Light_2} alt="Example 2" sizes="100%" placeholder="blur" className="dark:hidden" />
65-
<Image src={OIS_Rewards_Example_Dark_2} alt="Example 2" sizes="100%" placeholder="blur" className="hidden dark:block" />
75+
<Image
76+
src={OIS_Rewards_Example_Light_2}
77+
alt="Example 2"
78+
sizes="100%"
79+
placeholder="blur"
80+
className="dark:hidden"
81+
/>
82+
<Image
83+
src={OIS_Rewards_Example_Dark_2}
84+
alt="Example 2"
85+
sizes="100%"
86+
placeholder="blur"
87+
className="hidden dark:block"
88+
/>
6689

6790
## Example 3: Publisher and Delegator Stake more than the Cap
6891

@@ -85,8 +108,20 @@ $$
85108
\end{aligned}
86109
$$
87110

88-
<Image src={OIS_Rewards_Example_Light_3} alt="Example 3" sizes="100%" placeholder="blur" className="dark:hidden" />
89-
<Image src={OIS_Rewards_Example_Dark_3} alt="Example 3" sizes="100%" placeholder="blur" className="hidden dark:block" />
111+
<Image
112+
src={OIS_Rewards_Example_Light_3}
113+
alt="Example 3"
114+
sizes="100%"
115+
placeholder="blur"
116+
className="dark:hidden"
117+
/>
118+
<Image
119+
src={OIS_Rewards_Example_Dark_3}
120+
alt="Example 3"
121+
sizes="100%"
122+
placeholder="blur"
123+
className="hidden dark:block"
124+
/>
90125

91126
## Example 4: Introducing Delegator Fees
92127

@@ -113,8 +148,20 @@ $$
113148
\end{aligned}
114149
$$
115150

116-
<Image src={OIS_Rewards_Example_Light_4} alt="Example 4" sizes="100%" placeholder="blur" className="dark:hidden" />
117-
<Image src={OIS_Rewards_Example_Dark_4} alt="Example 4" sizes="100%" placeholder="blur" className="hidden dark:block" />
151+
<Image
152+
src={OIS_Rewards_Example_Light_4}
153+
alt="Example 4"
154+
sizes="100%"
155+
placeholder="blur"
156+
className="dark:hidden"
157+
/>
158+
<Image
159+
src={OIS_Rewards_Example_Dark_4}
160+
alt="Example 4"
161+
sizes="100%"
162+
placeholder="blur"
163+
className="hidden dark:block"
164+
/>
118165

119166
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.
120167

pages/home/oracle-integrity-staking/slashing-rulebook.mdx

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,61 @@ The Pythian councile identifies there were 9 active publishers for `FOO/USD` at
109109
It was found that 7 of the 9 publishers were influencing the price of `FOO/USD` at the time of the incident.
110110
The other 2 publishers were found publish price closely to the mediuan of the reference data.
111111

112-
<Image src={ois_slashin_investigation_dark} alt="OIS Slashing Investigation" sizes="100%" placeholder="blur" className="hidden dark:block" />
113-
<Image src={ois_slashin_investigation_light} alt="OIS Slashing Investigation" sizes="100%" placeholder="blur" className="dark:hidden" />
112+
<Image
113+
src={ois_slashin_investigation_dark}
114+
alt="OIS Slashing Investigation"
115+
sizes="100%"
116+
placeholder="blur"
117+
className="hidden dark:block"
118+
/>
119+
<Image
120+
src={ois_slashin_investigation_light}
121+
alt="OIS Slashing Investigation"
122+
sizes="100%"
123+
placeholder="blur"
124+
className="dark:hidden"
125+
/>
114126

115127
### Pythian Council Process for Slashing
116128

117129
- Assume that the Pyth DAO has set the maximum slashable amount at 500 bps of the total stake of each responsible publisher's assigned pool, the maximum amount that can be slashed is $500 \text{ bps} \times 50\text{M} = 2.5\text{M PYTH}$.
118130
- From the investigation, \$200K of preventable liquidations were identified from on chain data, the Pythian Council could adjust the amount of stake slashed to 500K PYTH or 100bps (assuming PYTH/USD = $0.40).
119131

120-
<Image src={ois_slashing_pool_pre_dark} alt="Pre Slashing Pool" sizes="100%" placeholder="blur" className="hidden dark:block" />
121-
<Image src={ois_slashing_pool_pre_light} alt="Pre Slashing Pool" sizes="100%" placeholder="blur" className="dark:hidden" />
132+
<Image
133+
src={ois_slashing_pool_pre_dark}
134+
alt="Pre Slashing Pool"
135+
sizes="100%"
136+
placeholder="blur"
137+
className="hidden dark:block"
138+
/>
139+
<Image
140+
src={ois_slashing_pool_pre_light}
141+
alt="Pre Slashing Pool"
142+
sizes="100%"
143+
placeholder="blur"
144+
className="dark:hidden"
145+
/>
122146

123147
- The 500K PYTH slashed is charged pro-rata to the 7 pools that constitute the stake subject to slashing (i.e. calculated according to the total stake in the 7 pools assigned to the 7 publishers found responsible for the misprint).
124148

125149
- Assume `pool_1` has 10M staked, made up of **6M self-staked and 4M delegated PYTH**.
126150
- The publisher assigned to `pool_1` would see its self-stake slashed 100bps of 6M PYTH, ie. 60K PYTH, resulting in **5.84M** residual self-stake.
127151
- Delegators to `pool_1` would see their stake slashed by 100bps of 4M PYTH, ie. 40K PYTH, resulting in **3.96M** residual delegated stake.
128152

129-
<Image src={ois_slashing_pool_post_dark} alt="Post Slashing Pool" sizes="100%" placeholder="blur" className="hidden dark:block" />
130-
<Image src={ois_slashing_pool_post_light} alt="Post Slashing Pool" sizes="100%" placeholder="blur" className="dark:hidden" />
153+
<Image
154+
src={ois_slashing_pool_post_dark}
155+
alt="Post Slashing Pool"
156+
sizes="100%"
157+
placeholder="blur"
158+
className="hidden dark:block"
159+
/>
160+
<Image
161+
src={ois_slashing_pool_post_light}
162+
alt="Post Slashing Pool"
163+
sizes="100%"
164+
placeholder="blur"
165+
className="dark:hidden"
166+
/>
131167

132168
- The total amount slashed in this example is 500K PYTH. This amount goes to the Pyth DAO treasury. The Pythian Council or the community can propose to the DAO to vote on means to distribute the slashed amount.
133169

0 commit comments

Comments
 (0)