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

Redeem ITN rewards from mainet wallet #1965

Closed
KtorZ opened this issue Jul 27, 2020 · 3 comments
Closed

Redeem ITN rewards from mainet wallet #1965

KtorZ opened this issue Jul 27, 2020 · 3 comments
Assignees

Comments

@KtorZ
Copy link
Member

KtorZ commented Jul 27, 2020

Context

  • As a ADA stakeholder who participated in the ITN,
  • I want to be able to redeem my rewards from the ITN to my mainnet wallet,
  • Without having to send a transaction to my ITN account first.
  • So that I can enjoy my ITN rewards.

Decision

  • Make it possible to redeem rewards of a wallet A from the API using another wallet B.

Acceptance Criteria

  1. It must not be necessary to restore the ITN wallet in order to redeem its rewards.

Development

QA

@darko-mijic
Copy link

Looking forward to this one. :)

@piotr-iohk
Copy link
Contributor

I have tested manually on MC4 and locally on cluster, trying out different cases:

  • Can redeem rewards from self/other sending more than rewards, but utxo should cover
  • Can redeem rewards from self/other sending more than utxo, rewards should cover
  • Can redeem sending my all utxo, rewards should cover fees
  • Can redeem sending all rewards, utxo should cover fees
  • Can't redeem rewards from other when utxo is 0
  • Can't redeem rewards from self when utxo is 0
  • Not-enough money when redeeming > utxo + rewards
  • Cannot cover fee when redeeming = utxo + rewards

Looking at the transactions it seems everything OK, in terms of amount / input / outputs on the receiver and sender side. (Hopefully I haven't missed anything).

Added PR with some additional cases also -> #1987

One thing I was wondering about is that when you withdraw rewards from a foreign wallet, there is no evidence (in terms of transaction history on that foreign wallet, that there was a withdrawal). Transaction is only listed on a wallet from where you were doing transaction only (and a receiver wallet.)

@KtorZ
Copy link
Member Author

KtorZ commented Aug 6, 2020

Scenarios have been a bit reviewed in #1987 to avoid having too many cases taking a long time at the integration level. Many of the original edge-cases in #1987 are actually tested at the unit level via the coin selection algorithm, so only a few end-to-end tests are needed to confirm that the behavior works as intended 👍

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

3 participants