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

added delegate_mining check #38

Merged
merged 7 commits into from
Aug 28, 2024
Merged

added delegate_mining check #38

merged 7 commits into from
Aug 28, 2024

Conversation

rwwwx
Copy link
Contributor

@rwwwx rwwwx commented Aug 20, 2024

added delegate_mining check. let a few todos with questions for reviewers

@rwwwx
Copy link
Contributor Author

rwwwx commented Aug 20, 2024

Also take a look on this metaplex-foundation/aura-staking#26 pr

@rwwwx
Copy link
Contributor Author

rwwwx commented Aug 20, 2024

It quite raw but I need your review to continue

programs/rewards/src/instruction.rs Outdated Show resolved Hide resolved
programs/rewards/src/utils.rs Outdated Show resolved Hide resolved
program_id,
delegate_wallet_addr,
reward_pool.key,
WrappedMining::from_bytes_mut(&mut delegate_mining.data.borrow_mut())?
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't have to be a mutable. We have a very special WrappedImmutableMining for this

Copy link
Collaborator

@StanChe StanChe left a comment

Choose a reason for hiding this comment

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

change_delegate is not handled

@rwwwx rwwwx requested a review from StanChe August 26, 2024 12:47
Copy link
Collaborator

@kstepanovdev kstepanovdev left a comment

Choose a reason for hiding this comment

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

LGTM
Good job. Pls don't forget about TODOs

@rwwwx rwwwx merged commit bf0127c into main Aug 28, 2024
3 checks passed
@rwwwx rwwwx deleted the mtg-438-replace-find-methods branch August 28, 2024 13:48
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