Skip to content

Return KMD rewards amount for all KMD txs #874#965

Merged
artemii235 merged 11 commits intodevfrom
tx-details-kmd-rewards
Jun 9, 2021
Merged

Return KMD rewards amount for all KMD txs #874#965
artemii235 merged 11 commits intodevfrom
tx-details-kmd-rewards

Conversation

@sergeyboyko0791
Copy link
Copy Markdown

  • Add 'kmd_rewards' to TransactionDetails returning from withdraw, my_tx_history

@sergeyboyko0791 sergeyboyko0791 self-assigned this Jun 3, 2021
@sergeyboyko0791 sergeyboyko0791 linked an issue Jun 3, 2021 that may be closed by this pull request
@sergeyboyko0791
Copy link
Copy Markdown
Author

There is one nuance regarding the transaction history. Do we have to re-request the KMD transaction history to recalculate the fees and KMD rewards?
cc @artemii235 @yurii-khi

shamardy
shamardy previously approved these changes Jun 3, 2021
Copy link
Copy Markdown
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

* Add 'get_mut_verbose_transaction_from_map_or_rpc', 'calc_interest_of_tx' to 'UtxoCommonOps'
* Add 'update_kmd_rewards' to 'UtxoStandardOps'
@sergeyboyko0791 sergeyboyko0791 requested review from shamardy and removed request for artemii235 and shamardy June 7, 2021 05:48
shamardy
shamardy previously approved these changes Jun 7, 2021
Copy link
Copy Markdown
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Copy Markdown

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I have one minor comment.

Comment thread mm2src/coins/utxo.rs Outdated
Copy link
Copy Markdown

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@artemii235 artemii235 merged commit 846f6bb into dev Jun 9, 2021
@artemii235 artemii235 deleted the tx-details-kmd-rewards branch June 9, 2021 06:52
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.

Return KMD rewards amount for all KMD txs

3 participants