Skip to content

Cache warming hardcodes limit: 20 instead of WARM_PAGE_LIMIT #248

Closed

Description

@DeFiVC

Problem

In src/cache/warmer.ts lines 4 and 16, WARM_PAGE_LIMIT is defined as 20, but line 16 uses a magic number 20 instead of the constant:

const WARM_PAGE_LIMIT = 20;
// ...
const landingPageQuery = { page: 1, limit: 20 }; // Should use WARM_PAGE_LIMIT

If the warm page limit changes, this line would be missed.

Fix

Use the constant:

const landingPageQuery = { page: 1, limit: WARM_PAGE_LIMIT };

Scope

  • src/cache/warmer.ts -- use constant

Acceptance Criteria

  1. Magic number replaced with constant
  2. Cache warming uses configured limit
  3. Existing tests pass

Technical Context

  • src/cache/warmer.ts:16 -- hardcoded value

Activity

  1. Marvellous805 commented on Aug 30, 2026

    @Marvellous805

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

    Hi, I can fix this

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

  2. emarkees commented on Aug 30, 2026

    @emarkees

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

    I would like to resolve this, pls assign

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

  3. unlimitedengineer commented on Aug 30, 2026

    @unlimitedengineer
    Contributor

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

    I’d like to work on this issue. I can refactor the config loading to remove the unsafe Proxy approach and preserve full TypeScript type safety, so invalid config property names fail at compile time while keeping the existing test-mode behavior intact.

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

  4. drips-wave commented on Aug 30, 2026

    @drips-wave

    Congratulations, @unlimitedengineer! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.

    🧑‍💻 @unlimitedengineer: 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 🌊

  5. grantfox-oss commented on Aug 31, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @unlimitedengineer's PR #441 was approved and merged by @DeFiVC.

    🏆 @unlimitedengineer: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (796 total points). Track your full progress on GrantFox.

    👏 Great work, @unlimitedengineer! Keep contributing to ChainLearnOfficial.

  6. drips-wave commented on Aug 31, 2026

    @drips-wave

    This issue has been completed by @unlimitedengineer as part of the Stellar Wave Program's 8th Wave 🥳

    😎 @unlimitedengineer: You earned 200 Points for completing this issue! After the current Wave ends, 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.

  7. added a commit that references this issue on Aug 31, 2026
    9ed90d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workinglow

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions