Skip to content

Commit

Permalink
feat: interactive graph of elastic-subnet rewards params (#1806)
Browse files Browse the repository at this point in the history
* chore: create `elastic-parameters-graph.md`

* feat: embed `iframe` with Desmos graph

Signed-off-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>

* feat: interactive graph of elastic-subnet rewards params

* chore: keep `vale` happy

---------

Signed-off-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
Co-authored-by: Lavinia Talpas <den_lavi@yahoo.com>
Co-authored-by: Meaghan FitzGerald <meag.fitz@avalabs.org>
  • Loading branch information
3 people committed Aug 1, 2024
1 parent 5f9afad commit 7e8127d
Showing 1 changed file with 15 additions and 0 deletions.
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>

0 comments on commit 7e8127d

Please sign in to comment.