Skip to content

Add buy cooldown enforcement middleware for creator key purchases #877

Closed

Description

@Chucks1093

Summary

Implement server-side buy cooldown enforcement that rejects purchase requests from wallets within their cooldown period after a recent buy.

Scope

  • Check cooldown expiry for wallet before processing buy transaction
  • Store cooldown expiry in Redis keyed by wallet address and key ID
  • Return 429 with cooldown_expires_at in response on violation
  • Cooldown duration configurable per key via contract metadata

Acceptance Criteria

  • Purchase rejected with 429 when wallet is in cooldown
  • cooldown_expires_at timestamp included in rejection response
  • Cooldown set correctly after successful purchase
  • Cooldown duration reads from contract metadata
  • Redis failure falls back to database cooldown check

ETA

12 hours

Activity

  1. emmxy commented on Sep 24, 2026

    @emmxy

    @emmxy has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I would love to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @emmxy to this issue.

  2. Joseph-tech10 commented on Sep 24, 2026

    @Joseph-tech10

    @Joseph-tech10 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I’ve thoroughly reviewed the issue and have a clear understanding of the intended outcome. I’d like to take this on and deliver a well-integrated solution that meets the acceptance criteria while maintaining the quality and consistency of the existing project.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Joseph-tech10 to this issue.

  3. byteMara commented on Sep 24, 2026

    @byteMara
    Contributor

    @byteMara has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello, I investigated the affected functionality and understand the changes needed to achieve the expected result. I can take this issue and ensure the implementation is reliable.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @byteMara to this issue.

  4. Nife-tanny commented on Sep 24, 2026

    @Nife-tanny

    @Nife-tanny has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hi. I would like to work on this issue.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Nife-tanny to this issue.

  5. divinemike019 commented on Sep 24, 2026

    @divinemike019

    @divinemike019 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hi! I'd like to contribute to this issue.

    I’ll focus on [specific issue requirement] reviewing the existing relevant component/service/module and implementing the required changes while following the project’s current patterns. I’ll also add or update relevant tests to cover the change and verify that existing functionality remains unaffected.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @divinemike019 to this issue.

  6. abdulrahmanj383-creator commented on Sep 24, 2026

    @abdulrahmanj383-creator

    @abdulrahmanj383-creator has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I’m interested in taking on this task and contributing meaningfully to the project. I’ve reviewed the requirements and believe I can work through the task carefully, communicate clearly, and deliver a solid implementation within the expected timeframe.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @abdulrahmanj383-creator to this issue.

  7. iyanumajekodunmi756 commented on Sep 24, 2026

    @iyanumajekodunmi756

    @iyanumajekodunmi756 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I would love to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @iyanumajekodunmi756 to this issue.

  8. Benedict315 commented on Sep 24, 2026

    @Benedict315
    Contributor

    @Benedict315 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    hello please assign me to this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Benedict315 to this issue.

  9. nugarjr5 commented on Sep 24, 2026

    @nugarjr5

    @nugarjr5 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I understand the expected outcome and would love to work on this. I'll provide a solution that satisfies the acceptance criteria.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @nugarjr5 to this issue.

  10. Danitello123 commented on Sep 24, 2026

    @Danitello123

    @Danitello123 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    I’m a smart contract and full-stack developer who turns complex ideas into secure, production-ready blockchain code.
    With strong skills in Rust and Solidity, I build systems that are fast, safe, and built to last.
    My experience with the Stellar SDK lets me ship real-world Web3 solutions that actually move value

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Danitello123 to this issue.

  11. drips-wave commented on Sep 24, 2026

    @drips-wave

    Congratulations, @Danitello123! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @Danitello123: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  12. tebney commented on Oct 15, 2026

    @tebney

    @tebney has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I'd like to work on this issue.I've reviewed the problem description and the affected files, and I'm confident I can implement a clean fix that aligns with the project's current patterns.Please assign this issue to me so I can get started on a PR.Thank you!

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @tebney to this issue.

  13. ochanya2001 commented on Oct 15, 2026

    @ochanya2001

    @ochanya2001 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer I can work on this issue kindly assign it to me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @ochanya2001 to this issue.

  14. fatihuayodele2-bot commented on Oct 15, 2026

    @fatihuayodele2-bot

    @fatihuayodele2-bot has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello Maintainer, I’ve reviewed the issue and understand what needs to be done. I’d appreciate the chance to work on it and provide a good solution. Kindly assign it to me. Thank you!

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @fatihuayodele2-bot to this issue.

  15. abdulazeezmotunrayo05-lang commented on Oct 15, 2026

    @abdulazeezmotunrayo05-lang

    @abdulazeezmotunrayo05-lang has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I'd be glad to handle this issue. I'll keep the implementation concise, maintainable, and well-documented.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @abdulazeezmotunrayo05-lang to this issue.

  16. damilare0813 commented on Oct 15, 2026

    @damilare0813

    @damilare0813 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello, I'd like to work on this. I have experience with Rust/Soroban and I've worked on similar tests before. I can start now and open PR within 2 days. Here is my GitHub: [your link]"

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @damilare0813 to this issue.

  17. Stanley-Owoh commented on Oct 15, 2026

    @Stanley-Owoh
    Contributor

    @Stanley-Owoh has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Good day maintainer
    Plesse i would like to work on this issue i can work on it immediatly and deliver clean code with positive result
    Please assign this issue to me. Thanks

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Stanley-Owoh to this issue.

  18. bright5455 commented on Oct 15, 2026

    @bright5455
    Contributor

    @bright5455 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    hello maintainer

    i have read and understand the issue
    im a front end engineer with five years of eperience,with my level of experience,i believe i can deliver a quality PR
    please kindly assign this task to me

    Thank you

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @bright5455 to this issue.

  19. shadrach68 commented on Oct 15, 2026

    @shadrach68
    Contributor

    @shadrach68 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Please assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @shadrach68 to this issue.

  20. drips-wave commented on Oct 15, 2026

    @drips-wave

    Congratulations, @Stanley-Owoh! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @Stanley-Owoh: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  21. grantfox-oss commented on Oct 17, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @Stanley-Owoh's PR #1043 was approved and merged by @Chucks1093.

    🏆 @Stanley-Owoh: You earned 40 FoxPoints for this contribution! Your current tier: Builder (2,238 total points). Track your full progress on GrantFox.

    👏 Great work, @Stanley-Owoh! Keep contributing to accesslayerorg.

  22. drips-wave commented on Oct 17, 2026

    @drips-wave

    This issue has been completed by @Stanley-Owoh as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @Stanley-Owoh: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

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

Metadata

Metadata

Assignees

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