Skip to content

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.

3 participants