Skip to content

Prompt unlock flow needs stale listing and price-change protection before wallet signing #239

Description

@prissca

Problem

A buyer can start purchase on one listing snapshot and sign after creator changes price, asset, or prompt version unless the flow binds exact terms.

Scope

  • Bind challenge to prompt version, price, asset, seller, and expiry
  • Invalidate stale purchase attempts
  • Update UI with refreshed quote state

Acceptance criteria

  • Changed listing terms invalidate pending challenge
  • Buyer sees refreshed terms before signing
  • Tests cover price, asset, seller, and version changes

Relevant areas

  • api/auth/challenge.ts
  • api/prompts/version.ts
  • src/pages/prompts

Complexity

High - 200 points

Contributor guidance

Start with a short design note in the issue discussion, then implement with focused tests and documentation for the affected workflow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaignhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions