Sitelet https://web.archive.org/web/20210615003832/https://github.com/GaloyMoney/galoy/issues/16
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

make it possible to "send all" amount for onchain payment #16

Open
nicolasburtey opened this issue Oct 16, 2020 · 0 comments
Open

make it possible to "send all" amount for onchain payment #16

nicolasburtey opened this issue Oct 16, 2020 · 0 comments

Comments

@nicolasburtey
Copy link
Member

@nicolasburtey nicolasburtey commented Oct 16, 2020 •

currently, when making a payment, the fees are being added to the amount sent.

for instance, if someone want to send 10,000 sats, and the fees is 2,000, the total will be 12,000 sats.

the issue to do a send all is that, when the base amount increase, the fee might changes (fee are being calculated dynamically by lnd).

so for instance, if someone has 15000 sats. he would need to have maybe 13000 sats in the amount, and if the fees are 2000 sats then this would send all. but maybe for 13,000 sats the fees would be 2050 because one utxo is being used. and for 12950, only 2000 would be necessary because a single utxo would be needed.

so empirically people are doing a dichotomy to find the right amount to swipe their balance. I believe the right way to manage is to have a send_all flag where instead of the fees being added, it should be deduced from the total amount sent.

this would have an impact on the react native side. but first the API should be available for consumption to the mobile wallet.

@nicolasburtey nicolasburtey self-assigned this Oct 16, 2020
@nicolasburtey nicolasburtey transferred this issue from another repository Mar 16, 2021
@nicolasburtey nicolasburtey changed the title make it possible to "send all" amount (that would account for fees) make it possible to "send all" amount Jun 11, 2021
@nicolasburtey nicolasburtey removed their assignment Jun 11, 2021
@nicolasburtey nicolasburtey changed the title make it possible to "send all" amount make it possible to "send all" amount for onchain payment Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant