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

Update Transfers to use only unsigned uint64 #3129

Merged
merged 4 commits into from
Mar 11, 2021

Conversation

jeremyletang
Copy link
Member

It just occured to me that we need to do this before moving to the big uint. The code is now expecting in some places negative amount (legacy) for e.g: mtm losses.
The code doing that will be uncompatible with the big uints, it is mandatory to implement this now, so we do not introduce both the move to an unsigned integer and a new type in the same changes.

This is done in order to prepare for the move to big uint.

  • changed all amount in transfers to be uint64
  • fixed collateral engine

close #3128

@jeremyletang jeremyletang force-pushed the feature/3128-financial-amount-int64-to-uint64 branch from a5f3c9d to 3113e4f Compare March 11, 2021 17:07
@jeremyletang jeremyletang marked this pull request as ready for review March 11, 2021 17:10
@jeremyletang jeremyletang merged commit be16a15 into develop Mar 11, 2021
@jeremyletang jeremyletang deleted the feature/3128-financial-amount-int64-to-uint64 branch March 11, 2021 17:37
@edd edd mentioned this pull request Mar 16, 2021
3 tasks
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.

Replace int64 in FinancialAmount to uint64
2 participants