-
-
Notifications
You must be signed in to change notification settings - Fork 272
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(staking): zero amounts when bumping fee #15030
fix(staking): zero amounts when bumping fee #15030
Conversation
51e001e
to
6ada92e
Compare
ec65227
to
98029fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing approve as in claiming tx, the amount is still 0
this fixup 2090878 hides zero amount for bump txs when claiming as was agreed |
Hey, @tomasklim |
@omykhailovskyi don't worry, the last commit is quite a big change and I wanted to go through really carefully |
fe65440
to
482fff9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving but waiting for also approve from somebody else as most of the commit are mine
482fff9
to
557db07
Compare
@@ -362,7 +362,7 @@ export const formatAmount = (amount: BigNumberValue, decimals: number) => { | |||
} | |||
}; | |||
|
|||
export const amountToSatoshi = (amount: BigNumberValue, decimals: number) => { | |||
export const formatAmountWithDecimals = (amount: BigNumberValue, decimals: number) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nitpick, but I think the new name makes it unclear what this function does.
It's named confusingly similarly to formatAmount
function, but it does the opposite thing.
So maybe amountToSmallestUnit
or normalizeAmount
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is clear for me, but I will rename it. np
557db07
to
973274f
Compare
Description
Related Issue
Resolve #13752
Resolve #13397
Screenshots: