|
| 1 | +# Oracle Integrity Staking (OIS) |
| 2 | + |
| 3 | +This document outlines the design principles and implementation details of the Oracle Integrity Staking (OIS) protocol. |
| 4 | + |
| 5 | +## Design Principles |
| 6 | + |
| 7 | +OIS's economic design focuses on awarding and penalizing Stakers over the primary dimension of data accuracy. |
| 8 | +Stakers receive rewards from an open-ended pool for helping to ensure data quality. They will also have their stake slashed as a penalty for failing to maintain data accuracy. |
| 9 | + |
| 10 | +The core design principles behind OIS include the following: |
| 11 | + |
| 12 | +- Integrity Staking secures all current and future price feeds produced by the Pyth Network. |
| 13 | +- Data Publishers are individually responsible for data accuracy. |
| 14 | +- Rewards and penalties are proportionate to the stake assigned to each publisher. Delegators share in the risk-reward of the publisher(s) they assign their stake to. |
| 15 | +- A higher number of publishers for each price feed contributes positively to the security of such feed. |
| 16 | +- Staking for OIS is complementary to Staking for Governance, and eligible $PYTH tokens can be used for both purposes. |
| 17 | +- The ability to slash stake in OIS requires **unlocked** \$PYTH tokens, whereas Staking for Governance can use both locked and unlocked $PYTH tokens. |
| 18 | +- All parameter related to the OIS protocol are subject to the governance of the Pyth DAO. |
| 19 | + |
| 20 | +## Implementation |
| 21 | + |
| 22 | +OIS implements the principle above through the following structure: |
| 23 | + |
| 24 | +1. OIS is subject to the same 7-day epoch as Governance voting. All parameters used in the OIS protocol are captured at each start of the epoch on Thursdays at 0:00 UTC and remain constant until the end of the epoch. Staking into OIS is also subject to warmup and cooldown period prior and post epoch respectively. |
| 25 | + |
| 26 | +2. Each publisher is programmatically assigned a staking pool where they can self-stake and to which other stakers can delegate |
| 27 | + - The staking pool assigned to each publisher covers all price feeds/symbols they publish. |
| 28 | + - Each staking pool has a soft cap. This soft cap dynamically expands and shrinks given the number of symbols published by the assigned publisher. |
| 29 | + - Price feeds with a low number of publishers contribute less to the cap's expansion. |
| 30 | + - Staking into the pool can exceed the soft cap. However no rewards are paid nor penalties are levied on the excess amount. |
| 31 | + - The OIS protocol prioritizes self-stake attributed to the **publisher's stake** when distributing rewards to the publisher's pool. |
| 32 | + - All staking pools charge the same delegation fee for stakers who are delating stake to one or many pools. |
| 33 | +3. Each pool has a maximum reward rate per epoch, which applies only to the staked amount within the soft cap. |
| 34 | +4. The total amount of rewards paid to all pools is bound by the same cap relative to the amount of rewards available to the OIS protocol. |
| 35 | +5. Slashing of stake has a hard cap and only impacts pools that assigned to publishers responsible for the poor data quality. Both self-stakers and delegators are also slashed proportionally to their staked amount in the impacted pools. |
0 commit comments