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

SDK: Add query to chain (or indexer) for current enabled features #1205

Open
jurevans opened this issue Oct 24, 2024 · 0 comments
Open

SDK: Add query to chain (or indexer) for current enabled features #1205

jurevans opened this issue Oct 24, 2024 · 0 comments

Comments

@jurevans
Copy link
Collaborator

We can query storage keys to determine if a certain features has been enabled on chain:

  1. If phase 3 is on, then there should be a storage key corresponding to #<IBC>/mint_limit/<token_address> that will hold a non-zero value. I think if any non-zero mint_limit key exists, then phase 3 has been activated
  2. For phase 4, for any token that has the mint_limit key existing with non-zero value, then you can query the key #<Token>/<token_address>/parameters/max_reward_rate. If any key of this kind has non-zero value, then shielded rewards are enabled for that token
  3. Phase 5 is simple: there is a boolean in storage with key #<parameters_address>/native_token_transferable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant