Concordium / concordium-reference-wallet-android

Reference Android wallet for the Concordium blockchain
Apache License 2.0
12 stars 2 forks source link

Delegation: First registration transaction #116

Closed jens-concordium closed 2 years ago

jens-concordium commented 2 years ago

Task description If the account is not already delegating an amount to a pool, it will be possible to start a register delegation transaction from the delegation status page.

When making a register delegation transaction, all parameters of the ConfigureDelegation transaction must be submitted. This means the user has to make a decision on all parameters, before submitting the transaction.

The register delegation transaction can be seen in Flow 2 in Figma.

The flow consists of 4 pages:

  1. On the first page the user decides whether they want to delegate to an open baker pool or the L-pool. For open baker pools the user will have to input a target baker ID. A baker ID is not required for the L-pool.
  2. On the second page, the user has to input the amount they want to delegate, and whether they want to add their earnings to the delegation amount automatically. If the user is delegating to an open baker pool, there will be shown the current pool size and what the limit of the pool is at the moment. If the user is delegating to the L-pool, these limits don't exist so we will not show them in that situation. There is also a range of error situations shown in Figma, i.e. if the user doesn't have enough funds or if they are trying to delegate an amount so large that it breaches the pool limit. Lastly, there should be shown a message, if the user tries to delegate more than 95% of their public balance.
  3. On page three the user will be met with ticket that shows the transaction, before submitting it.
  4. Page four is the submitted transaction ticket, now with a transaction hash. Pressing the "Finish" button on this page, will show the user a notification, telling them that the transaction will take effect from the next pay day.

After pressing "Okay" on the last notification, the user will be taken to Delegation status scenario 1, of the delegation status page.