Skip to content

[codex] Add category-specific funding goal caps#565

Open
MyouzzZ wants to merge 1 commit into
Iris-IV:mainfrom
MyouzzZ:codex/category-funding-goal-cap-509
Open

[codex] Add category-specific funding goal caps#565
MyouzzZ wants to merge 1 commit into
Iris-IV:mainfrom
MyouzzZ:codex/category-funding-goal-cap-509

Conversation

@MyouzzZ

@MyouzzZ MyouzzZ commented Jun 30, 2026

Copy link
Copy Markdown

Summary

  • add per-category funding goal cap storage keyed by campaign category
  • expose admin set/remove helpers plus a getter for the effective category cap
  • enforce the stricter of the category cap and global max during create_campaign
  • add focused tests for enforcement, category isolation, removal, validation, and non-admin rejection

Fixes #509.

Validation

  • git diff --check
  • static brace-balance sanity check on touched Rust files

I could not run cargo fmt / cargo test locally because this Windows environment does not have cargo or rustc installed.

@MyouzzZ MyouzzZ force-pushed the codex/category-funding-goal-cap-509 branch from d8f105c to e250310 Compare June 30, 2026 03:08
@davidmaronio

Copy link
Copy Markdown
Contributor

the category-specific funding-goal caps look reasonable but the pr is dirty, it conflicts with main (it touches admin.rs/storage.rs/lib.rs/create.rs which have moved). please rebase and resolve, i'll re-review the merged result (especially admin.rs/storage.rs for any silent clobber) and re-run ci before merge.

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.

[Feature] Add category-specific maximum funding goal cap — prevent unrealistic goals attracting exploitative campaigns

2 participants