Lunie: Display amount of rewards obtained from reward withdrawal

Created on 8 Mar 2019  路  24Comments  路  Source: luniehq/lunie

Is your feature request related to a problem? Please describe.

Currently we don't show on the transactions how many tokens you gained when you withdraw rewards.

Describe the solution you'd like

Show the rewards obtained with the withdraw transaction.

Describe alternatives you've considered

Query balance before and after withdrawal and get the difference (short term)
Get the reward coins obtained through Gaia-lite (post-lunch release)

Additional context

Screen Shot 2019-03-05 at 10 31 10 AM

cc: @jackzampolin @alexanderbez

high priority ux-improvement

Most helpful comment

This is now emitted in the tx's event logs. Wait till the next major upgrade to use this functionality.

All 24 comments

This would be super simple once we implement an event-based log system in the sdk (e.g. ctx.Event("delegation_rewards", coins). I'm not sure there is a super clean solution in the short-term.

post-lunch

馃崝

This would be super simple once we implement an event-based log system in the sdk (e.g. ctx.Event("delegation_rewards", coins). I'm not sure there is a super clean solution in the short-term.

I think that's too much overhead, we just need to either

  • add an amount field to the request withdraw message, or
  • return the amount withdrawn by adding it to the response message

Should this issue move into the SDK?

return the amount withdrawn by adding it to the response message

Seems like the easiest approach. Sure @faboweb.

This is now possible as the tags on a withdraw tx include the withdraw amount.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Still relevant

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

would be nice to do this still. probably very simple.

This is now emitted in the tx's event logs. Wait till the next major upgrade to use this functionality.

Wait till the next major upgrade

@alexanderbez do you mean cosmoshub-3?

Yup!

we can implement on gaia-13k6

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

yes, please. let's do this already!

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This should not be doable fwiw

yep! definitely, thanks @jackzampolin.

@Bitcoinera @mariopino is this covered with the new tx abstraction work?

@Bitcoinera @mariopino is this covered with the new tx abstraction work?

Yes, it is. But in multidenom networks we only display the staking denom.

in multidenom networks we only display the staking denom.

ok for now!

ok for now!

Cool. This is how it is looking now:

Was this page helpful?
0 / 5 - 0 ratings