Skip to content

Add maintenance-pool config getters and configurable MAX_SPONSORS - #208

Merged
chonilius merged 2 commits into
MergeFi:mainfrom
Godbrand0:fix/max-sponsors-config-and-maintenance-pool-getters
Aug 28, 2026
Merged

Add maintenance-pool config getters and configurable MAX_SPONSORS#208
chonilius merged 2 commits into
MergeFi:mainfrom
Godbrand0:fix/max-sponsors-config-and-maintenance-pool-getters

Conversation

@Godbrand0

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • cargo test --workspace — all existing tests pass with call sites updated for the new initialize parameter
  • New tests: get_admin/get_treasury/get_fee_bps on maintenance-pool (both happy path and pre-initialize NotInitialized path)
  • New tests: get_max_sponsors defaults to the constant when max_sponsors is omitted, and a custom max_sponsors is honored and enforced in escrow/milestones

Closes #93
Closes #96

🤖 Generated with Claude Code

- maintenance-pool: add get_admin/get_treasury/get_fee_bps view functions,
  mirroring escrow's implementation (MergeFi#93).
- escrow/milestones: accept max_sponsors as an optional initialize
  parameter, stored in instance storage alongside Admin/Treasury/FeeBps
  and defaulting to the existing MAX_SPONSORS constant (20) when omitted,
  so the sponsor cap is a per-deployment configuration choice instead of
  requiring a contract redeploy to change (MergeFi#96). Add get_max_sponsors to
  both contracts for symmetry with the other stored config getters.

Closes MergeFi#93, closes MergeFi#96

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@Godbrand0 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

@Godbrand0 is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@chonilius
chonilius merged commit fb45222 into MergeFi:main Aug 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants