Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: interactive graph of elastic-subnet rewards params #1806

Merged
merged 7 commits into from
Aug 1, 2024
Merged
15 changes: 15 additions & 0 deletions docs/build/subnet/elastic/elastic-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,18 @@ parameters on Mainnet:
- `MaxValidatorWeightFactor = 5`. This is a platformVM parameter rather than a
genesis one, so it's shared across networks.
- `UptimeRequirement = 0.8`, that is `80%`.

### Interactive Graph

The graph below demonstrates the reward as a function of the length of time
staked. The x-axis depicts $\frac{StakingPeriod}{MintingPeriod}$ as a percentage
while the y-axis depicts $Reward$ as a percentage of $MaximumSupply - Supply$,
the amount of tokens left to be emitted.

Graph variables correspond to those defined above:

- `h` (high) = $MaxConsumptionRate$
- `l` (low) = $MinConsumptionRate$
- `s` = $\frac{Stake}{Supply}$

<iframe src="https://www.desmos.com/calculator/uqtank2gcn" width="100%" height="400px"></iframe>
Loading