Skip to content

Dust Attack Prevention #13

@Kaylahray

Description

@Kaylahray

User Story

As a Maintainer,
I want to block tiny giveaways that spam the system.

Description

Enforce minimum amounts.


Files to Create/Edit

contracts/geev-core/src/
└── giveaway.rs

Functional Requirements

  • Config: MIN_AMOUNT = 5 XLM.
  • Check: Reject creation if amount < MIN_AMOUNT.

Suggested Implementation

// IN FUNCTION: create_giveaway

// 1. Define constant MIN_LIMIT.
// 2. If 'amount < MIN_LIMIT', panic with "AmountTooLow".

Acceptance Criteria

  • Creation fails for small amounts.

Submission Guidelines

  • Branch: feat/dust-prevention

Metadata

Metadata

Assignees

No one assigned

    Labels

    @geevapp/app/wave2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions