Examples
This reference page provides examples of various scenarios to illustrate the Mathematical Representations of OIS.
NOTE: All the symbols used in the examples are explained in the Mathematical Representation section.
Example 1: Only Publisher Stake
This example takes the case of one pool where the pool has stake from only the publisher.


Example 2: Publisher and Delegator Stake
This example takes the case where the pool has stake from both the publisher and the delegator.


Example 3: Publisher and Delegator Stake more than the Cap
This example takes the case where the combined stake of both the publisher and the delegator exceeds the cap.


Example 4: Introducing Delegator Fees
This example demonstrates how the delegation fee affect the reward distribution between the publisher and the delegator.


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.
Example 5: Slashing event on the pool
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 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.
Checkout out the detailed slashing example at Slashing Rulebook
Example 6: Increasing the cap of the pool
This example shows how a publisher can increase the cap of the pool assigned to them. As described in the Mathematical Representation, the cap is calculated as:
In this scenario, let's assume that
- The constant parameter representing the target stake per symbol is 100
- The constant parameter to control cap contribution is 5
- Current symbols published are {,.., } where for every symbol currently published = 5 (for i = 1 .. 5 = 5)
The cap of the pool is calculated as follows:
Here publisher has 2 options to increase the cap of the pool assigned to it.
Option 1: Publish new symbol with a low number of publishers
Assume the publisher decides to publish a new symbol with only 3 publishers, = 3.
The new pool cap would change as the sum of the current cap from the 5 symbols published plus the cap gained from publishing (where = 3 + 1 = 4)
Option 2: Publish additional symbols where the cap of 32 publishers is not reached
Assuming there is room to publish 5 more symbols {,.., } where each have currently 9 publishers ( for i = 6 .. 10 = 9)
The new pool cap would change as the sum of the current cap from the 5 symbols published plus the cap gained from publishing the additional symbols {,.., } (where for i = 6 .. 10 = 10)
Reward Calculator
Use the calculator below to calculate publisher and delegator rewards based on your inputs.
Reward Simulator
Calculated Rewards:
Publisher Reward (): 26
Delegator Reward (): 24
Calculated Reward Rates(Yearly):
Publisher Reward Rate (): 13%
Delegator Reward Rate (): 8%