Problem
No limit on number of plans a merchant can create.
Context
Unlimited plans could cause storage issues and degrade UX.
Proposed Solution
Add plan limits:
- Define MAX_PLANS_PER_MERCHANT constant
- Check limit before creating plan
- Return error if exceeded
- Consider configurable limits
Acceptance Criteria
Technical Notes
File: contracts/src/lib.rs
Constant: Add to top of file
Function: create_plan
Constraints
- Consider gas for iteration
- Upgrade path for limits
- Backward compatibility
Problem
No limit on number of plans a merchant can create.
Context
Unlimited plans could cause storage issues and degrade UX.
Proposed Solution
Add plan limits:
Acceptance Criteria
Technical Notes
File: contracts/src/lib.rs
Constant: Add to top of file
Function: create_plan
Constraints