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

Invariants Improvement #1054

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Conversation

prateek105
Copy link
Contributor

@prateek105 prateek105 commented Jan 8, 2024

Description

  • Reduce MAX_POOL_DEBT to 1e32.
  • Add loan settlement for settleable borrowers if pooldebt > MAX_POOL_DEBT.
  • Fix collateral to pledge calculations to calculate collateral to pledge at least collateral scale.

Purpose

Impact

Tasks

  • Changes to protocol contracts are covered by unit tests executed by CI.
  • Protocol contract size limits have not been exceeded.
  • Gas consumption for impacted transactions have been compared with the target branch, and nontrivial changes cited in the Impact section above.
  • Scope labels have been assigned as appropriate.
  • Invariant tests have been manually executed as appropriate for the nature of the change.

Copy link
Collaborator

@MikeHathaway MikeHathaway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prateek105 prateek105 merged commit f0b163c into reserves-bucket-take Jan 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants