Skip to content

feat: custom fees - #855

Open
vgorkavenko wants to merge 10 commits into
phase-2from
feat/custom-fees
Open

feat: custom fees#855
vgorkavenko wants to merge 10 commits into
phase-2from
feat/custom-fees

Conversation

@vgorkavenko

@vgorkavenko vgorkavenko commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

  • Operators can lower fees instantly, while increases require a cooldown.
  • Allocation weight follows pending increases immediately.
  • Per-type bonuses affect effective fees without changing allocation weight.
  • Invalid fees can be normalized permissionlessly.
  • Fee parameters and cooldowns remain governance-controlled.

Checklist

  • Appropriate PR labels applied
  • Test coverage maintained (just coverage)
    • Tests are added/updated
  • Documentation maintained
    • No need to update

Base automatically changed from fix/remove-tiers to phase-2 July 16, 2026 15:58
@vgorkavenko
vgorkavenko marked this pull request as ready for review July 28, 2026 15:54
@vgorkavenko
vgorkavenko requested a review from a team as a code owner July 28, 2026 15:54

@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: 7387849ebc

ℹ️ 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 script/curated/DeployMainnet.s.sol Outdated
Comment thread test/helpers/Fixtures.sol

@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: 8c32881d60

ℹ️ 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 script/curated/DeployBase.s.sol
Comment thread src/interfaces/ICustomFeeRegistry.sol Outdated
Comment thread src/CustomFeeRegistry.sol Outdated
Comment thread src/CustomFeeRegistry.sol Outdated
Comment thread src/CustomFeeRegistry.sol Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@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: 074f9ed9ef

ℹ️ 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 on lines +234 to +236
config.customFeeRegistryConfig.feeModifiers.push(
CurveFeeModifierConfig({ curveId: 0, value: 2_500, negative: true })
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Configure the 10000-BP curve fee modifiers

Populate positive 1,250-BP modifiers for the curves created for the Public Good, Decentralization, Extra Effort, and DVT Plus gates (curve IDs 2, 3, 4, and 6 in this deterministic deployment). Those gates still configure a 10,000-BP reward share, but this block now initializes only curve 0, so getEffectiveFee returns the 8,750-BP base fee for their operators and underpays them once fee reports consume this registry. Fresh evidence beyond the earlier empty-registry comment is that curve 0 has now been populated while all positive modifiers remain absent.

AGENTS.md reference: AGENTS.md:L73-L75

Useful? React with 👍 / 👎.

Comment thread src/CustomFeeRegistry.sol
Comment on lines +16 to +17
/// @notice Per-operator fee discounts and the allocation weight boost derived from them. See
/// ICustomFeeRegistry for the model.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Regenerate Forge documentation for the new contracts

Run forge doc and commit the generated output: this commit adds CustomFeeRegistry, StepwiseWeightBoost, and their interfaces with extensive new NatSpec, but contains no docs/src changes, leaving the checked-in generated documentation without these APIs and stale for the modified providers.

AGENTS.md reference: AGENTS.md:L12-L15

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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