Skip to content

test(lts): exercise setDefaultFee through governance flow#177

Open
thedavidmeister wants to merge 2 commits into
mainfrom
issue-82-setdefaultfee-test
Open

test(lts): exercise setDefaultFee through governance flow#177
thedavidmeister wants to merge 2 commits into
mainfrom
issue-82-setdefaultfee-test

Conversation

@thedavidmeister

Copy link
Copy Markdown
Collaborator

Summary

  • Adds testFtsoV2LTSSetDefaultFee — a fuzz test (runs=1) that exercises setDefaultFee(uint256) on the live FeeCalculator through the governance propose→timelock→execute flow
  • Validates the on-chain selector matches IGovernedFeeCalculator.setDefaultFee, and that the new default fee is reflected in calculateFeeByIds for feeds without a per-feed override

Previously setDefaultFee was declared in IGovernedFeeCalculator.sol but never called in tests; a signature drift would have gone undetected.

Closes #82

🤖 Generated with Claude Code

The setDefaultFee selector on IGovernedFeeCalculator was declared but
never validated against the live FeeCalculator contract. This fork test
mirrors the setFeedsFees pattern: propose via governance, warp past
timelock, execute, then assert calculateFeeByIds reflects the new default.

Closes #82

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@thedavidmeister thedavidmeister self-assigned this Jun 23, 2026
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@thedavidmeister, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 28 minutes and 28 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 028c03fa-14f1-45e6-a802-0e29e944d383

📥 Commits

Reviewing files that changed from the base of the PR and between cb20d03 and 2ed3f72.

📒 Files selected for processing (1)
  • test/src/lib/lts/LibFtsoV2LTS.t.sol
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-82-setdefaultfee-test

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

[F31] [LOW] setDefaultFee is declared but never referenced or exercised anywhere

1 participant