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 CLI command to claim rewards #242

Closed
alpe opened this issue Jan 26, 2022 · 3 comments · Fixed by #422
Closed

Add CLI command to claim rewards #242

alpe opened this issue Jan 26, 2022 · 3 comments · Fixed by #422
Assignees
Labels
S Small, <1 day work
Milestone

Comments

@alpe
Copy link
Contributor

alpe commented Jan 26, 2022

This is missing in the CLI. Current workflow is to use the frontend.

Current workaround is to interact with the distribution contract directly via:

tgrade tx wasm execute $(tgrade q poe contract-address DISTRIBUTION -o json |jq -r '.address') '{"withdraw_funds":{}}' --from YOUR_KEY_NAME  --chain-id=tgrade-testnet-3 --gas-prices=0.05utgd -b block

The cli command can be grouped within the PoE module commands.

The poe unjail command can be used as a template how to interact with a contract.

When properly integrated, then we should see the new command listed in tgrade tx poe -h.

@alpe alpe added this to the Tgrade 0.7 milestone Jan 26, 2022
@alpe alpe added the S Small, <1 day work label Jan 28, 2022
@alpe
Copy link
Contributor Author

alpe commented Feb 15, 2022

Moving to a post mainnet milestone as a workaround exists

@alpe
Copy link
Contributor Author

alpe commented May 10, 2022

The message was renamed in the contract to: {"withdraw_rewards":{}}, meanwhile

@alpe
Copy link
Contributor Author

alpe commented May 11, 2022

Note: DISTRIBUTION + ENGAGEMENT rewards can be claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S Small, <1 day work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants