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

Fix the formula used to calculate BSQ amount needed to avoid dust #5475

Merged
merged 1 commit into from
May 7, 2021

Conversation

BtcContributor
Copy link
Contributor

The formula used to calculate the BSQ needed to avoid dust was incorrect.

For example, this was before:

paste

The BSQ amount needed should be 8, not 13. Now it is fixed.

@ripcurlx ripcurlx requested a review from sqrrm May 7, 2021 09:41
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@sqrrm sqrrm merged commit 993f9b4 into bisq-network:master May 7, 2021
@BtcContributor BtcContributor deleted the bsq_dust branch May 7, 2021 12:30
@pazza83
Copy link

pazza83 commented May 7, 2021

I am confused is 5.46 not the dust limit?

bsq min

@sqrrm
Copy link
Member

sqrrm commented May 8, 2021

5.46 is the dust limit, so each output need to be at least 546 sat. If you have 7 BSQ (700 sat) you can burn 1.54 BSQ and have a change output of 5.46 since the burnt BSQ is used to pay the mining fee which is not an output, just the remainder of all the inputs minus outputs.

Please let me know if this didn't help explain the situation.

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

Successfully merging this pull request may close these issues.

4 participants