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

Add hook to CL messages to allow for whitelisted pool access #6582

Open
Tracked by #5970
AlpinYukseloglu opened this issue Sep 28, 2023 · 0 comments
Open
Tracked by #5970

Add hook to CL messages to allow for whitelisted pool access #6582

AlpinYukseloglu opened this issue Sep 28, 2023 · 0 comments

Comments

@AlpinYukseloglu
Copy link
Contributor

Background

It came up during discussions that there’s demand for pools that have whitelisted addresses that can interact with them. While there are hacky ways we can add this directly in chain code, @p0mvn suggested that we could instead trigger a hook at the beginning of each message that calls a CW contract such that if a target contract is set for the pool, we execute sudo message like with CW pools.

This would in theory allow for arbitrary logic to be run prior to pool message execution, so the use cases would be far more expansive than the simple validation check above.

Suggested Design

  • See above description

Acceptance Criteria

  • Feature is implemented and well tested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage 🔍
Development

No branches or pull requests

1 participant