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 a way to create a ContractExecutionAuthorization that can utilize any coins/denoms. #1845

Open
kakucodes opened this issue Mar 29, 2024 · 0 comments

Comments

@kakucodes
Copy link

Currently the way things work are that you either whitelist the specific denoms that are allowed via the MaxFunds/Combined limit or you use MaxCalls which doesn't allow any denoms, but there is no way to allow any/every denom. This puts some heavy restrictions on when/how the authorization can be used.

A concrete use case that I currently am facing:
I have a contract that users can deposit uatom and uosmo into and can claim rewards from (in those same assets that were deposited). Normally I could use a ContractExecutionAuthorization (with a max funds in uatom and uosmo) to be able to claim the rewards and deposit them back performing compounding. The issue comes in when the contract adds a third denom as a permissible deposit/reward so now people can also deposit uusdc and my ContractExecutionAuthorization can claim the uusdc but can no longer deposit it back into the contract. This is where an any denom option would be immensely helpful.

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

No branches or pull requests

1 participant