-
Notifications
You must be signed in to change notification settings - Fork 36
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
Jon/fix/fio-tx-saved-data #827
Conversation
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.
This may resolve the unstaking bug but I think the refactor introduced new bugs for other transaction types.
5ba131c
to
3468750
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.
Much better! Only two minor issues then it looks good to go
src/fio/FioEngine.ts
Outdated
@@ -2139,11 +2147,9 @@ export const parseAction = ({ | |||
networkFee = '0' | |||
} else { | |||
networkFee = isRecipient ? `-${fioAmount}` : fioAmount | |||
networkFee = '0' |
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.
This looks like a typo
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.
Yeah bad merge conflict resolution, good catch
src/fio/FioEngine.ts
Outdated
} | ||
|
||
nativeAmount = data.to === actor ? `${fioAmount}` : `-${fioAmount}` |
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.
I think these two lines should be removed from the previous commit
b2faa3f
to
ca9387b
Compare
Retaining all existing functionality
Previously, unstake txs only stored the reward action amount. Unstake txs now correctly total the reward action amount + unstake amount.
We no longer need to process multiple txs to accurately get fees for sending funds
8a265c2
to
8526a27
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none