Skip to content

[blue rolling fallback] liquidation precision - #1169

Open
peyha wants to merge 5 commits into
mainfrom
rolling-fallback-liquidation-comment
Open

[blue rolling fallback] liquidation precision#1169
peyha wants to merge 5 commits into
mainfrom
rolling-fallback-liquidation-comment

Conversation

@peyha

@peyha peyha commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown

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: 63f09399bd

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/periphery/blue-fallback-rolling/BlueFallbackRolling.sol Outdated
Comment thread src/periphery/blue-fallback-rolling/BlueFallbackRolling.sol Outdated
@peyha peyha changed the title [blue rolling fallback]: liquidation precision [blue rolling fallback liquidation precision Aug 28, 2026
@peyha peyha changed the title [blue rolling fallback liquidation precision [blue rolling fallback] liquidation precision Aug 28, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T12:14:25.845111Z 960bad1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 3124b4f60a

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/periphery/blue-fallback-rolling/BlueFallbackRolling.sol Outdated
Co-authored-by: Adrien Husson <adhusson@gmail.com>
Signed-off-by: PA <50184410+peyha@users.noreply.github.com>
/// which case the destination position debt and collateral can be difficult to predict.
/// @dev Contrary to Midnight, Blue positions can be liquidated because of interest accrual, which should be taken into
/// account when deciding/approving the rolling configuration.
/// @dev Partial rolls of unhealthy Midnight positions fail, except if rounding makes the remaining position healthy.

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.

Suggested change
/// @dev Partial rolls of unhealthy Midnight positions fail, except if rounding makes the remaining position healthy.
/// @dev Partial rolls leaving the Midnight position unhealthy fail.

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.

but if the position is healthy it cannot be made unhealthy through partial rolling right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think both can happen:

  • if the position starts unhealthy, rounding down the removed collateral can make it healthy
  • if the position starts healthy, rounding down in the max debt loop can make it unhealthy

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.

yes, pushing some tests to show that

Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com>
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.

5 participants