Skip to content

[certora] Post Maturity Debt check#967

Open
lilCertora wants to merge 17 commits into
mainfrom
certora/postMaturityDebt
Open

[certora] Post Maturity Debt check#967
lilCertora wants to merge 17 commits into
mainfrom
certora/postMaturityDebt

Conversation

@lilCertora
Copy link
Copy Markdown
Collaborator

Post maturity the liquidation is locked or the debt cannot increase

@lilCertora lilCertora marked this pull request as ready for review June 3, 2026 15:59
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6d8aa7fd6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread certora/specs/PostMaturityDebt.spec
Comment thread certora/specs/PostMaturityDebt.spec Outdated
Comment thread certora/specs/PostMaturityDebt.spec Outdated
Comment thread certora/specs/PostMaturityDebt.spec Outdated
Comment thread certora/specs/PostMaturityDebt.spec Outdated
Comment thread certora/specs/PostMaturityDebt.spec Outdated
Comment on lines +19 to +20
// This encodes a no-reentrancy assumption, justified because the property is about the effect of each
// function's own body on debt, not the full transaction including (re-entrant) callbacks.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Actually the interesting case was in callbacks in the previous code: we want to make sure that the lock is properly set there.

Now, it's not that it's "justified because the property is about the effect of each function's own body on debt, not the full transaction including (re-entrant) callbacks." We do care about the full transaction including callbacks. The reason why it's ok is because if you prove that no function can increase the debt without callbacks, then by induction you also prove that no function can increase the debt with callbacks (the inner-most call doesn't increase debt, and by the induction hypothesis the whole call without the inner-most call doesn't increase the debt)

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5f89574268

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread certora/specs/PostMaturityDebt.spec
@lilCertora lilCertora requested a review from QGarchery June 6, 2026 06:52
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.

2 participants