Skip to content

[trello.com/c/1lX3h2xx] eliminated 0 commission in transaction details #887

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

Merged
merged 1 commit into from
Jul 4, 2025

Conversation

vovameister
Copy link
Member

the scenario of displaying 0 commission in transaction details has been completely eliminated
I think the root cause is 0 in @atomic private(set) var transactionFee: Decimal = 0.0, but after considering the scenario of rewriting it to optional, I still came to the conclusion that it is better to check the fee at the last moment before displaying it in the UI. 2 main reasons for this decision:
1.) protocols and methods are strongly tied to the non-optional value of transactionFee and will require refactoring for all coin services
2.) the fee goes through dozens of files and the chance of human error in determining the value when processing the optional is too high, so it is better to guarantee correct display in the UI even if somewhere the optional is mistakenly unpacked to 0

…ansaction details has been completely eliminated
@vovameister vovameister marked this pull request as ready for review June 27, 2025 15:37
@Lainaaa Lainaaa requested a review from art-divin July 1, 2025 12:08
@vovameister vovameister merged commit 08d83cc into release/3.11.0 Jul 4, 2025
2 checks passed
@vovameister vovameister deleted the trello.com/c/1lX3h2xx branch July 4, 2025 15:37
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