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

F/rewards generation 2 #81

Merged
merged 13 commits into from
Nov 8, 2024
Merged

F/rewards generation 2 #81

merged 13 commits into from
Nov 8, 2024

Conversation

maurolacy
Copy link
Collaborator

A refactor of the rewards generation impl in #80.

Here we move all of the rewards calculation logic to the contract, which is good for integration and modularity.

It uses a MintRewards custom handler, which mints the rewards after validation / authentication of sender and recipient.

Copy link
Member

@SebastianElvis SebastianElvis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

contracts/btc-finality/src/contract.rs Outdated Show resolved Hide resolved
@maurolacy maurolacy merged commit 18b4530 into main Nov 8, 2024
3 checks passed
@maurolacy maurolacy deleted the f/rewards-generation-2 branch November 8, 2024 04:46
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.

2 participants