Skip to content

Add Quest Expiry Grace Period Configuration #1718

Description

@RUKAYAT-CODER

Overview

The expiry grace buffer after deadline is a hard-coded constant. Quest creators may need different grace periods for different quest types, but currently this cannot be set per quest.

Specifications

Features:

  • Optional grace_period_seconds: Option in BatchQuestInput and Quest`n- Falls back to global default if not set
  • Admin can update the global default

Tasks:

  • Add grace_period_seconds to Quest type
  • Update quest.rs registration to store per-quest grace period
  • Update expiry check logic

Impacted Files:

  • contracts/earn-quest/src/types.rsn- contracts/earn-quest/src/quest.rsn

Acceptance Criteria:

  • Quest with custom grace period uses that value for expiry check
  • Quests without explicit value use global default

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignStellar WaveIssues in the Stellar wave programcontractenhancementNew feature or request

Type

No type

Fields

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