Light-client: I want to withdraw tokens from the UDC contract

Created on 24 Apr 2020  路  13Comments  路  Source: raiden-network/light-client

User Story

As Chris I want to withdraw tokens from the UDC contract so that I can sell them.

Acceptance criteria

  • Needs the notification area to be in place
  • There is an event which helps
  • There is a withdraw and deposit button (perhaps in the UDC screen)

Tasks

  • [ ] Design (Pre-Iteration design)
5 sdk 馃枼 dApp 馃摫 Design 馃帹 Split 鉁傦笍 Ready 馃幀

All 13 comments

@karlb How do I withdraw my tokens from the UDC as a user? I have already checked https://raiden-network-specification.readthedocs.io/en/latest/service_contracts.html#userdeposit, but couldn't find an answer.

To withdraw, you have to call planWithdraw(amount), wait 100 blocks and call withdraw(amount) on the UserDeposit contract. You can do this on etherscan. The Raiden client should provide a user friendly way to do that, but it currenlty doesn't. It's only getting the capability to do that internally just now.

@karlb Cool, thanks for the information :) We are planning to implement this in the Light Client.

@taleldayekh Please assign the "Ready" label after the design has been done, thanks :)

Sure thing!

One quick fix which also makes sense would be to add the withdrawal icon next to the balance. A user could then perform minting/depositing and withdrawal on the same screen.

Screenshot 2020-06-02 at 10 01 59

Sound like a good idea to include a withdraw button there

Mockup ready. Pretty straight forward but it does the trick:
https://xd.adobe.com/view/6d1e5b87-796c-43d3-6dc0-4817716010fe-1b2f/

Note that the withdrawal icon should not be visible if there is no balance.
@kelsos @andrevmatos @weilbith

Whoever picks this issue please also center the top text. Dunno why it is not centered as it is now.

@taleldayekh do we have this icon already in the project?

Sure, you should already have used it when you implemented the token withdrawal screen.

@kelsos Did I understand it correctly during the demo, that the user is going to be notified within the notification panel about a succesfull withdrawal from the UDC?

That is the plan.

Was this page helpful?
0 / 5 - 0 ratings