Skip to content

fix: enforce non-decreasing settlement fees#968

Open
prd-carapulse[bot] wants to merge 4 commits into
mainfrom
hermes/nondecreasing-settlement-fee-ttm
Open

fix: enforce non-decreasing settlement fees#968
prd-carapulse[bot] wants to merge 4 commits into
mainfrom
hermes/nondecreasing-settlement-fee-ttm

Conversation

@prd-carapulse
Copy link
Copy Markdown
Contributor

@prd-carapulse prd-carapulse Bot commented Jun 2, 2026

Reject default and per-market settlement-fee updates that would make the fee curve decrease as TTM increases.

Reject fee curves that decrease as TTM increases and update tests to configure monotonic curves.
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: 49c532a588

ℹ️ 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 src/Midnight.sol Outdated
prd-carapulse Bot added 3 commits June 2, 2026 13:54
Only compare the updated settlement-fee breakpoint with its immediate neighbors.
Keep the before/after breakpoint checks inline in the settlement fee setters.
Use settlementFeeCbps(id) for the per-market neighbor checks instead of rebuilding the array inline.
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