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

Masp conversions doesn't require all tokens be in genesis #2285

Merged
merged 3 commits into from
Dec 29, 2023

Conversation

batconjurer
Copy link
Member

Fixes #2283

Describe your changes

Previously, a hardcoded set of tokens were expected to be used in Masp conversions.
If these tokens did not have configs in genesis, this would lead to a panic after the first
epoch change. This PR fixes this to use the tokens found in genesis belonging to the MASP
rewards whitelist instead of hardcoding the tokens.

Indicate on which release or other PRs this topic is based on

v0.28

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@Fraccaman
Copy link
Member

can we add a rpc call to list all available tokens? Might be nice to also know if they eligible for masp rewards

@Fraccaman
Copy link
Member

Field Value
command spawn devnet
template_name 0.28.0
retention_period 2023-12-16T00:00:00Z

sug0
sug0 previously approved these changes Dec 15, 2023
@sug0
Copy link
Collaborator

sug0 commented Dec 15, 2023

unit tests timed out on the first run, so I re-ran them

@sug0
Copy link
Collaborator

sug0 commented Dec 15, 2023

looks like they're still timing out. hm

@Fraccaman
Copy link
Member

looks like they're still timing out. hm

maybe #2277 can help?

@Fraccaman
Copy link
Member

test devnet help

@namadabot
Copy link

namadabot bot commented Dec 15, 2023

@Fraccaman, use the following template to test a devnet:

Field Value
command test devnet
scenario string (mandatory)
chain id string (mandatory)

Fraccaman pushed a commit that referenced this pull request Dec 27, 2023
* origin/bat/fix/masp-rewards-genesis:
  [feat]: Added an rpc endpoint to query which tokens can earn MASP rewards while shielded
  [chore]: Add changelog
  [fix]: Masp conversions no longer requires all tokens be present in genesis
@Fraccaman Fraccaman mentioned this pull request Dec 27, 2023
Fraccaman pushed a commit that referenced this pull request Dec 27, 2023
* origin/bat/fix/masp-rewards-genesis:
  [feat]: Added an rpc endpoint to query which tokens can earn MASP rewards while shielded
  [chore]: Add changelog
  [fix]: Masp conversions no longer requires all tokens be present in genesis
brentstone added a commit that referenced this pull request Dec 29, 2023
* origin/bat/fix/masp-rewards-genesis:
  [feat]: Added an rpc endpoint to query which tokens can earn MASP rewards while shielded
  [chore]: Add changelog
  [fix]: Masp conversions no longer requires all tokens be present in genesis
@brentstone brentstone merged commit 4d85d6c into main Dec 29, 2023
13 of 14 checks passed
@brentstone brentstone deleted the bat/fix/masp-rewards-genesis branch December 29, 2023 19:37
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.

Remove hardcoded tokens from MASP rewards
4 participants