Skip to content

Feat/update share and remove user#16

Open
bangyro wants to merge 17 commits intorelease_0.1.2from
feat/update_share
Open

Feat/update share and remove user#16
bangyro wants to merge 17 commits intorelease_0.1.2from
feat/update_share

Conversation

@bangyro
Copy link
Collaborator

@bangyro bangyro commented Feb 3, 2026

No description provided.

@bangyro bangyro marked this pull request as ready for review February 4, 2026 05:01
@bangyro bangyro changed the title Feat/update share Feat/update share and remove user Feb 16, 2026
Comment on lines +26 to +27
#[msg("Invalid number of users")]
InvalidNumberOfUsers,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changing the error name here since. This error is also used when the number of user is less than the minimum amount (2)

@codewithgun
Copy link

codewithgun commented Feb 26, 2026

  1. Can we rename admin folder to operator? admin and owner folder naming feel the same to me.
  2. Currently, once user being removed, there's no way to add back.

@bangyro bangyro force-pushed the feat/update_share branch 2 times, most recently from b743f3a to d98b8bf Compare February 27, 2026 04:57
@bangyro
Copy link
Collaborator Author

bangyro commented Feb 27, 2026

@codewithgun I've renamed it to operator and added ix_add_user to add user to a fee_vault

Comment on lines +27 to +40
#[account(
init_if_needed,
payer = signer,
seeds = [
REMOVED_USER_TOKEN_VAULT,
fee_vault.key().as_ref(),
token_mint.key().as_ref(),
user.key().as_ref(),
],
bump,
token::mint = token_mint,
token::authority = fee_vault_authority,
)]
pub removed_user_token_vault: Box<InterfaceAccount<'info, TokenAccount>>,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

need to create this inside the handler conditionally if unclaimed_fee > 0

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