Skip to content

Add a buy cooldown configuration input on the creator dashboard to set the per-wallet buy delay #889

Description

@Chucks1093

Summary

Creators can set a buy cooldown period on-chain but have no UI for it. A cooldown input on the creator dashboard settings tab should let creators set a delay in minutes between consecutive buys by the same wallet.

Scope

  • Add a Buy Cooldown section to the creator dashboard settings tab
  • Show the current cooldown duration converted from ledgers to minutes
  • Render a number input for minutes (0 = no cooldown, max 60 minutes)
  • Convert the input to ledger units (approximately 1 ledger per 5 seconds) before submitting
  • Submit via the set_buy_cooldown contract function and show a success toast on confirmation

Acceptance Criteria

  • Current cooldown displayed in minutes on mount
  • Input constrained to 0–60 minutes
  • Minutes converted to ledger units correctly before submission
  • Success toast shown after contract confirmation
  • 0 minutes shown as 'No cooldown' in the display

ETA: 12 hours


Coordinate on Telegram

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

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions