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

Settlement code refactory #2748

Merged
merged 5 commits into from
May 29, 2023
Merged

Settlement code refactory #2748

merged 5 commits into from
May 29, 2023

Conversation

abitmore
Copy link
Member

@abitmore abitmore commented May 27, 2023

Follow-up of #2721.

Changes:

  • Rename functions has_settlement() and has_individual_settlement() to is_globally_settled() and is_individually_settled_to_fund() for intuition.
  • Store settled debt amount and collateral amount in the individual_settlement_debt and individual_settlement_fund fields in bitasset object instead of new data fields in limit order.
    Note: Due to this change, the 2 fields will become non-zero when individual settlement occurs and BSRM is individual_settlement_to_order. It may break some client applications which rely on the old logic "the 2 fields will be always zero if BSRM is individual_settlement_to_order".

...idual_settlement() to is_globally_settled() and is_individually_settled_to_fund() for intuition
abitmore added 3 commits May 27, 2023 21:41
Store settled debt amounts and collateral amounts in bitasset objects instead of limit orders.
@abitmore abitmore force-pushed the settlement-code-refactory branch from 85148a1 to f8d5e8d Compare May 27, 2023 21:41
@sonarcloud
Copy link

sonarcloud bot commented May 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

84.9% 84.9% Coverage
0.0% 0.0% Duplication

@abitmore abitmore merged commit 38dbc61 into hardfork May 29, 2023
@abitmore abitmore deleted the settlement-code-refactory branch May 29, 2023 14:10
@abitmore abitmore mentioned this pull request Jul 3, 2023
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.

1 participant