Skip to content

Implement capital requirements validation in factory #19

Description

@Gianfranco99

Description

The factory contract has a TODO comment for capital transfer validation when creating guilds. Currently anyone can create a guild without any economic backing.

Current State

Factory create_guild function has:

Proposed Solution

  • Add capital requirement parameter validation
  • Implement payment transfer mechanism
  • Add minimum capital thresholds (e.g. 1-10 USD equivalent)
  • Validate payment before guild deployment

Files to Update

  • src/guild/factory.cairo
  • Factory interface if needed

Acceptance Criteria

  • Capital requirement validation implemented
  • Payment transfer mechanism working
  • Minimum threshold configurable
  • Tests cover payment scenarios

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions