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

MGT-345: Initialize rewards-pool deposit authority signature #9

Conversation

rwwwx
Copy link
Contributor

@rwwwx rwwwx commented Jul 9, 2024

No description provided.

@rwwwx rwwwx requested review from kstepanovdev and n00m4d July 9, 2024 11:59
@@ -24,12 +24,11 @@ pub enum RewardsInstruction {
/// [R] Reward mint account
/// [W] Vault account
/// [WS] Payer
/// [R] Rent sysvar
/// [WS] Deposit authority account
Copy link
Collaborator

@kstepanovdev kstepanovdev Jul 9, 2024

Choose a reason for hiding this comment

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

Haven't we agreed that it should be just S?

fill_authority: Pubkey,
distribution_authority: Pubkey,
rent: AccountInfo<'a>,
Copy link
Collaborator

@kstepanovdev kstepanovdev Jul 9, 2024

Choose a reason for hiding this comment

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

Please, put rent just after deposit_authority everywhere

registrar.realm = ctx.accounts.realm.key();
registrar.realm_governing_token_mint = ctx.accounts.realm_governing_token_mint.key();
registrar.realm_authority = ctx.accounts.realm_authority.key();
let signers_seeds = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please, leave a describing comment here. It looks strange that signers_seeds includes all the operations below. I just showed this as an example. Also, you may want to redeclare the block or do sth else.

@rwwwx rwwwx requested a review from kstepanovdev July 9, 2024 12:52
@kstepanovdev
Copy link
Collaborator

LGTM

@kstepanovdev kstepanovdev merged commit a3f8270 into refactor-and-bugfixing Jul 9, 2024
0 of 4 checks passed
@kstepanovdev kstepanovdev deleted the MGT-345-Initialize-rewards-pool-deposit-authority-signature branch July 9, 2024 12:55
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