Skip to content

Add Quest Expiry Timestamp Validation #214

@Mkalbani

Description

@Mkalbani

Description

Quests with deadlines have no on-chain enforcement. A player can complete an expired quest and still claim rewards.

Expected Behavior

The contract should revert if a player attempts to complete a quest past its expiry time.

Proposed Fix

Add a timestamp guard in the completion function:

require(block.timestamp < quest.expiresAt, "Quest: expired");

Acceptance Criteria

  • Expired quests cannot be completed
  • Test cases cover boundary conditions (exactly at expiry)
  • Event emitted on expiry rejection

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

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