Skip to content

More accurate fee calculation in CreateDenominated#3588

Merged
UdjinM6 merged 3 commits into
dashpay:developfrom
UdjinM6:moreaccuratedenomfee
Jul 7, 2020
Merged

More accurate fee calculation in CreateDenominated#3588
UdjinM6 merged 3 commits into
dashpay:developfrom
UdjinM6:moreaccuratedenomfee

Conversation

@UdjinM6
Copy link
Copy Markdown

@UdjinM6 UdjinM6 commented Jul 6, 2020

No description provided.

@UdjinM6 UdjinM6 added this to the 16 milestone Jul 6, 2020
PastaPastaPasta
PastaPastaPasta previously approved these changes Jul 6, 2020
Copy link
Copy Markdown
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Copy Markdown

@xdustinface xdustinface left a comment

Choose a reason for hiding this comment

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

See comments and

if (it.second < privateSendClient.nPrivateSendDenomsGoal && nValueLeft >= it.first && nBalanceToDenominate > 0) {

Shouldn't this also be nValueLeft >= it.first + nOutputFee ?

Comment thread src/privatesend/privatesend-client.cpp Outdated
Comment thread src/privatesend/privatesend-client.cpp Outdated
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
@xdustinface
Copy link
Copy Markdown

utACK

Copy link
Copy Markdown
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit dc66c13 into dashpay:develop Jul 7, 2020
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Aug 23, 2020
* More accurate fee calculation in CreateDenominated

* Apply suggestions from code review

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Fix `finished` conditions

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
@PastaPastaPasta
Copy link
Copy Markdown
Member

backported in #3670

@UdjinM6 UdjinM6 deleted the moreaccuratedenomfee branch November 26, 2020 13:27
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 3, 2022
* More accurate fee calculation in CreateDenominated

* Apply suggestions from code review

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Fix `finished` conditions

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
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.

3 participants