Skip to content

Allow wrap authority co-signing on swaps#16

Merged
Oighty merged 4 commits intofeat-flag-v1from
kurtis/generalize-wrap-auth
Jun 12, 2025
Merged

Allow wrap authority co-signing on swaps#16
Oighty merged 4 commits intofeat-flag-v1from
kurtis/generalize-wrap-auth

Conversation

@SC4RECOIN
Copy link
Copy Markdown
Contributor

No description provided.

@SC4RECOIN SC4RECOIN requested a review from Oighty June 11, 2025 18:07
// If provided, this signer is the one which will be checked against the wrap authorities.
pub wrap_authority: Option<Signer<'info>>,
// Will be set if a whitelisted authority is signing for a user
pub unwrap_authority: Option<Signer<'info>>,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Oighty I know you prefer the naming of wrap_authority but I think they are distinct authorities and some extensions might have separate whitelists for each

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah, we can make two separate lists if we want. I was just focused on changing program_authority to something else because it doesn't have to be a program.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will require a bit of additional changes and some test refactoring based on the existing test suite + changes in #17

@Oighty Oighty merged commit 4a94237 into feat-flag-v1 Jun 12, 2025
@SC4RECOIN SC4RECOIN deleted the kurtis/generalize-wrap-auth branch July 1, 2025 13:41
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