Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/udayj/simple_staking
Inflation Resistant Staking Rewards
https://github.com/udayj/simple_staking
Last synced: 6 days ago
JSON representation
Inflation Resistant Staking Rewards
- Host: GitHub
- URL: https://github.com/udayj/simple_staking
- Owner: udayj
- Created: 2024-07-08T17:18:06.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-11T14:11:24.000Z (3 months ago)
- Last Synced: 2024-08-11T15:29:17.151Z (3 months ago)
- Language: Cairo
- Homepage:
- Size: 1.59 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The design is based on a simple premise - users staking into a protocol at any point in time should not have their rewards get diluted due to any new stake coming in.
Let R be the current total reward available to be claimed by stakers and S the sum of total stake in the system. Let a new stake s' enter the system. We increase the total reward pool by an amount **R.(s'/S)** and mark this reward as claimed by the user who staked new stake s'. Till actual new reward is added to the system, user staking s' will not be able to claim any reward. This prevents the existing stake rewards from getting diluted.