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

Optimize TX fees & Pay DERO fees only one time #139

Merged
merged 9 commits into from
Mar 26, 2024

Conversation

Slixe
Copy link
Contributor

@Slixe Slixe commented Aug 30, 2023

Description

Please include a summary of the changes and the related issue.

When you create a TX with more than one transfer, you pay the total TX fees for each transfer which is too much.

The fix here try to determine how much total fees should be paid and set it in the first entry.

For example, transfer with ring size 4, only 0.00060 DERO to pay:
image

Type of change

Please select the right one.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • This will require a HardFork to be enabled

Which part is impacted ?

  • Wallet
  • Daemon
  • Miner
  • Explorer
  • Simulator
  • Misc (documentation, comments, text...)

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

License

Im am contributing & releasing the code under DERO Research License (which can be found here).

@Slixe Slixe changed the title Draft: Pay DERO fees only one time Optimize TX fees & Pay DERO fees only one time Aug 31, 2023
@Slixe Slixe mentioned this pull request Jan 19, 2024
14 tasks
@Slixe Slixe changed the base branch from main to dev March 24, 2024 11:17
@Slixe
Copy link
Contributor Author

Slixe commented Mar 24, 2024

Changed to dev

Nelbert442 added a commit that referenced this pull request Mar 26, 2024
@Nelbert442 Nelbert442 merged commit 415a8cd into deroproject:dev Mar 26, 2024
Nelbert442 pushed a commit to Nelbert442/derohe that referenced this pull request Mar 28, 2024
pay fees only one time

support provided fees

restrict to DERO Asset only

wip: work on better fees calculator

predicate final size of the TX

fix fee multiplier

remove comment

final commit

compute only tx_fees if not done
Nelbert442 pushed a commit to Nelbert442/derohe that referenced this pull request Mar 28, 2024
pay fees only one time

support provided fees

restrict to DERO Asset only

wip: work on better fees calculator

predicate final size of the TX

fix fee multiplier

remove comment

final commit

compute only tx_fees if not done
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.

2 participants