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

fix(contract): add reward sweeping in SpaceDelegationFacet #1435

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shuhuiluo
Copy link
Contributor

Introduce reward sweeping when updating space operators. This ensures that any unclaimed rewards are properly transferred to the current operator. Additionally, refactored validations and removed redundant checks for enhanced readability and maintainability.

Introduce reward sweeping when updating space operators. This ensures that any unclaimed rewards are properly transferred to the current operator. Additionally, refactored validations and removed redundant checks for enhanced readability and maintainability.
Update the reward sweeping logic to forfeit rewards if the current operator is absent. This ensures proper handling of undelegated spaces and prevents unnecessary reward accumulation.
Introduce comprehensive unit tests for the `SpaceDelegation` contract. Update deploySpace function to accept a deployer address and modify deployment scripts to include `riverToken` selector.
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