Skip to content

Implement raised_amount update and milestone unlock check #195

@ayshadogo

Description

@ayshadogo

User Story:
As a developer, I want the contract to automatically detect when milestones are reached after each donation so that unlocking happens on-chain.
Acceptance Criteria:

  • After donation, raised_amount updated atomically
  • Loop over milestones: if raised_amount >= milestone.target_amount && status == Locked, set to Unlocked
  • milestone_unlocked event emitted for each newly unlocked milestone
  • Multiple milestones can unlock in single donation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions