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

[Solana] Allowlist on token pool #564

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

PabloMansanet
Copy link
Contributor

Similar to the approach taken for the example receiver.

TokenOfframp takes a whitelisted offramp as signer, but TokenOnramp continues to use the router as signer, as before.

@PabloMansanet PabloMansanet requested a review from toblich February 6, 2025 10:52
@PabloMansanet PabloMansanet requested a review from a team as a code owner February 6, 2025 10:52
@PabloMansanet PabloMansanet changed the title Allowlist on token pool [Solana] Allowlist on token pool Feb 6, 2025
old_authority,
new_authority
});
Ok(())
}

// set_router changes the router program ID. This is used to derive the list
// of valid mint/release callers (offramps).
pub fn set_router(ctx: Context<SetConfig>, new_router: Pubkey) -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

could this method be cyclic in some way? Is that a concern?

@agusaldasoro
Copy link
Contributor

can we add a test (if not present) of removing an offramp and then checking for it?

@PabloMansanet PabloMansanet marked this pull request as draft February 6, 2025 14:06
@toblich toblich force-pushed the allowed_offramps_tokenpool branch from f254857 to cd69649 Compare February 6, 2025 22:52
Copy link

github-actions bot commented Feb 7, 2025

Metric allowed_offramps_tokenpool main
Coverage 75.6% 75.6%

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