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

Incorrect Display of Pending Staking Rewards #153

Open
BlackBlocks-io opened this issue May 15, 2024 · 0 comments
Open

Incorrect Display of Pending Staking Rewards #153

BlackBlocks-io opened this issue May 15, 2024 · 0 comments
Assignees

Comments

@BlackBlocks-io
Copy link

Describe the bug
initiad q distribution rewards does not display the correct amount of pending rewards of the given delegator.

To Reproduce


~$ initiad q bank balance init1we4tsdvz2glpn9ldn5a27ztcccukfkq33grdqg uinit
balance:
  amount: "1481413"
  denom: uinit


~$ initiad q distribution rewards init1we4tsdvz2glpn9ldn5a27ztcccukfkq33grdqg initvaloper1we4tsdvz2glpn9ldn5a27ztcccukfkq39d65wc  
rewards:
- amount: "29292851739966447997200"
  denom: uinit


~$ initiad tx distribution withdraw-rewards initvaloper1we4tsdvz2glpn9ldn5a27ztcccukfkq39d65wc --from init1we4tsdvz2glpn9ldn5a27ztcccukfkq33grdqg --fees 60000uinit --gas 400000
Enter keyring passphrase (attempt 1/3):
auth_info:
  fee:
    amount:
    - amount: "60000"
      denom: uinit
    gas_limit: "400000"
    granter: ""
    payer: ""
  signer_infos: []
  tip: null
body:
  extension_options: []
  memo: ""
  messages:
  - '@type': /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward
    delegator_address: init1we4tsdvz2glpn9ldn5a27ztcccukfkq33grdqg
    validator_address: initvaloper1we4tsdvz2glpn9ldn5a27ztcccukfkq39d65wc
  non_critical_extension_options: []
  timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: ""
timestamp: ""
tx: null
txhash: 914314606BA66B0B4B69BE6C14ADA09B4DD9404E433E3F4F2FAD1B03A7CDBCBC


~$ initiad q bank balance init1we4tsdvz2glpn9ldn5a27ztcccukfkq33grdqg uinit
balance:
  amount: "1486824"
  denom: uinit

Expected behavior
Displaying the correct value.

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

2 participants