Skip to content

Commit 72274ef

Browse files
authored
chore(ois) Add Slashing example (#462)
* added images * small update * slashing example
1 parent 3850ad1 commit 72274ef

18 files changed

+47
-2
lines changed

images/ois/OIS Rewards Example 2.png

45.9 KB
Loading

images/ois/OIS Rewards Example 3.png

93 KB
Loading

images/ois/OIS Rewards Example 4.png

93 KB
Loading
43.4 KB
Loading
42.5 KB
Loading
75.3 KB
Loading

images/ois/OIS_Rewards_Example_1.png

44.6 KB
Loading
75.3 KB
Loading
37.4 KB
Loading
36.8 KB
Loading
31 KB
Loading
31.9 KB
Loading
28.6 KB
Loading
29.9 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"mathematical-representation": "Mathematical Representation",
3-
"examples": "Examples",
3+
"reward-examples": "Reward Examples",
44
"slashing-rulebook": "Slashing Rulebook"
55
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import RewardSimulator from "@/components/RewardSimulator";
2+
import Image from "next/image";
23

34
# Examples
45

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

+44
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,50 @@ If slashing event confirmed, the Pythian Council will process calculation and di
8080
- Stakers continue staking with the residual amount post slashing. No forced unstaking happens post slashing
8181
- The Pyth DAO controls the slashed amount upon execution of the slashing
8282

83+
## Slashing Example
84+
85+
This section provides a hypothetical scenario of a slashing event.
86+
87+
### Scenario
88+
89+
- Around datetime $t$, the community observes that an abnormal behaviour in the Pyth Price for `FOO/USD`.
90+
- Community members initiated a discussion on Pyth Forum on the abnormal behaviour and provided reference data for the issue.
91+
- The Pythian Council confirms the impact through on-chain data and collects reference data to cross-check the Pyth price.
92+
93+
### Investigation Results
94+
95+
- Reference data from 3 independent sources that cover the `FOO/USD` liquidity for the time period around $t$ are collected and analysed.
96+
- The analysis shows that the Pyth aggregate price for `FOO/USD` was 300 bps away from the median of the three sources for 60 seconds around $t$.
97+
- The issue was concentrated to `FOO/USD` and no other feed was impacted, nor was the issue found to be related to a macro event beyond `FOO/USD`.
98+
- The on-chain data reveals a total of $200K of preventable liquidations.
99+
100+
The Pythian councile identifies there were 9 active publishers for `FOO/USD` at the time of the incident $t$.
101+
It was found that 7 of the 9 publishers were influencing the price of `FOO/USD` at the time of the incident.
102+
The other 2 publishers were found publish price closely to the mediuan of the reference data.
103+
104+
![OIS Slashing Investigation](../../../images/ois/ois_slashin_investigation_dark.png)
105+
106+
### Pythian Council Process for Slashing
107+
108+
- 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}$.
109+
- 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).
110+
111+
![Pre Slashing Pool](../../../images/ois/ois_slashing_pool_pre_dark.png)
112+
113+
- 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).
114+
115+
- Assume `pool_1` has 10M staked, made up of **6M self-staked and 4M delegated PYTH**.
116+
- 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.
117+
- Delegators to `pool_1` would see their stake slashed by 100bps of 4M PYTH, ie. 40K PYTH, resulting in **3.96M** residual delegated stake.
118+
119+
![Post Slashing Pool](../../../images/ois/ois_slashing_pool_post_dark.png)
120+
121+
- 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.
122+
123+
### Timeline for Slashing
124+
125+
Assuming datetime $t$ happened during $\text{epoch}_t$ (7-day period from Thursday 0:00 UTC to Wednesday 23:59:59 UTC of the following week), the investigation and slashing are concluded by the end of the epoch following $\text{epoch}_t$ (or $\text{epoch}_t + 1$).
126+
83127
## Change Process
84128

85129
The Pyth DAO is responsible for implementing procedures for proposing, reviewing, approving, and adopting changes to the rules, policies, or procedures related to this Rulebook.

styles/styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
img {
6060
background-color: black;
6161
border: 1px solid #ccc;
62-
padding: 10px;
62+
padding: 1px;
6363
border-radius: 10px;
6464
}
6565

0 commit comments

Comments
 (0)