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

Exposing total_deposit on channels in the rest API #2176

kelsos opened this Issue Aug 13, 2018 · 1 comment


None yet
2 participants

kelsos commented Aug 13, 2018

Problem Definition

The webui uses the user's balance to calculate the new deposit when updating the total_deposit. The webui requires a user to insert then number of tokens to add to the deposit, then adds this number to the channel's balance and updates the channel's total deposit.

If the current balance is 10 and the user want's to increase the deposit by 10, the webui will send a total_deposit of 20, however if I have a channel with a total_deposit of 20 and the send a payment of 10 tokens to someone my balance in the channel will be 10.

Essentially this means that if I try to increase the total_deposit by 5 the webui will send a total_deposit of 15 where it should send a 25.


This comment has been minimized.


LefterisJP commented Aug 23, 2018

Okay so this is indeed an issue.

Two things needs to be done.

  1. Add thetotal_deposit to the ChannelSchema returned by the Rest API and edit the docs. I will do this today.
  2. Edit the WebUI to make sure that the total deposit is used when depositing to a channel and not the balance. @kelsos you should handle this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment