Skip to content

Add per-project investor whitelist to project-launch contract#483

Open
Chrisland58 wants to merge 1 commit into
GalactiGuild:mainfrom
Chrisland58:feat/investor-whitelist
Open

Add per-project investor whitelist to project-launch contract#483
Chrisland58 wants to merge 1 commit into
GalactiGuild:mainfrom
Chrisland58:feat/investor-whitelist

Conversation

@Chrisland58
Copy link
Copy Markdown

Add per-project investor whitelist

Closes: Access control is all-or-nothing — large projects (e.g. hedge fund-only rounds) had no
way to restrict who could contribute.

Changes

  • whitelist.rs (new) — per-project whitelist module with enable/disable toggle, add/remove
    investor, and is_blocked() gate
  • lib.rs — wires is_blocked() into contribute() before the KYC check; exposes 5 new contract
    entry points; adds 6 tests
  • shared/errors.rs — adds NotWhitelisted = 51, WhitelistEnabled = 52
  • shared/events.rs — adds WHITELIST_ENABLED, WHITELIST_DISABLED, INVESTOR_ADDED,
    INVESTOR_REMOVED

Behaviour

  • Whitelist is opt-in per project — disabled by default, so existing projects are unaffected
  • Only the project creator can manage the whitelist (no platform admin involvement)
  • When disabled, is_blocked() short-circuits with zero overhead

Testing

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@Chrisland58 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

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.

Implement 'Project Whitelist' for Institutional Investors

1 participant