Skip to content

bug: hardcoded stale XLM price used for fee-in-USD estimation #288

Closed

Description

@Austinaminu2

Problem

`lib/fee-utils.ts` hardcodes `XLM_PRICE = 0.12` (lines 12, 22) for USD fee estimates, disconnected from the live price already fetched by `hooks/use-token-price.ts`.

Location

`lib/fee-utils.ts:12, 22`, `hooks/use-token-price.ts`

Impact

Displayed fee-in-USD can be arbitrarily wrong once XLM's real price diverges from the hardcoded value.

Suggested fix

Have `fee-utils.ts` accept the live XLM/USD price as a parameter instead of hardcoding it.

Activity

  1. jbakare374-jpg commented on Jul 23, 2026

    @jbakare374-jpg

    @jbakare374-jpg has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    I’ve thoroughly reviewed the requirements and I’m confident I can resolve this issue by implementing a clean, well structured solution that aligns with the project requirements and meets the acceptance criteria. I look forward to submitting a quality pull request.

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

  2. brightfootlimited-collab commented on Jul 25, 2026

    @brightfootlimited-collab
    Contributor

    @brightfootlimited-collab has applied to work on this issue as part of the Stellar Wave Program's 7th wave.

    "I'm interested in this task. With my background in solving similar issues, I'm confident I can complete it efficiently and to a high standard

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

  3. drips-wave commented on Jul 25, 2026

    @drips-wave

    Congratulations, @brightfootlimited-collab! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on July 30, 2026.

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

  4. added a commit that references this issue on Jul 26, 2026
    ed0e685
  5. grantfox-oss commented on Jul 26, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!

    @brightfootlimited-collab's PR #412 was approved and merged by @Austinaminu2.

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

    👏 Great work, @brightfootlimited-collab! Keep contributing to FlowwStar.

  6. drips-wave commented on Jul 26, 2026

    @drips-wave

    This issue has been completed by @brightfootlimited-collab as part of the Stellar Wave Program's 7th Wave 🥳

    😎 @brightfootlimited-collab: 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.

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 workingfrontendNext.js frontend

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions