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: introduce reward_per_wrapped to cap annuity rewards based on th… #622

Merged
merged 3 commits into from
Jun 10, 2022

Conversation

gregdhill
Copy link
Member

…e total wrapped issuance

Signed-off-by: Gregory Hill gregorydhill@outlook.com

…e total wrapped issuance

Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@nud3l
Copy link
Member

nud3l commented Jun 7, 2022

@gregdhill could you do a quick summary of the logic this code change implements?

@gregdhill
Copy link
Member Author

gregdhill commented Jun 7, 2022

@gregdhill could you do a quick summary of the logic this code change implements?

Sure, so if RewardPerWrapped is set in the annuity pallet we will distribute min(reward_per_block, reward_per_wrapped * TotalWrapped::get()) where reward_per_block is the total amount of possible rewards (as currently distributed for KINT for example) and TotalWrapped is the issuance of kBTC / iBTC.

Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@gregdhill gregdhill merged commit 3028edd into interlay:master Jun 10, 2022
@gregdhill gregdhill deleted the feat/reward-per-wrapped branch June 10, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants