flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Frontend] Remove the bogus fallback contract address and duplicate contract env vars

Open blurbeast opened this issue 1 week ago • 3 comments

Overview & Background

settings-content.tsx:30 falls back to a hardcoded display fragment: process.env.NEXT_PUBLIC_STREAMING_CONTRACT || "CDV4K...7ZQY" — rendered at line 498 as the user's "contract address". That string is not a valid Stellar address (it is pre-truncated). Meanwhile stellar-config.ts:16 reads a different env var for the same value (NEXT_PUBLIC_STREAM_CONTRACT_ID), and .env.example:29,32 documents both. Setting the var the error messages tell users to set (NEXT_PUBLIC_STREAM_CONTRACT_ID) leaves settings showing the wrong value.


Technical Specification & Architecture

  1. Read the same NEXT_PUBLIC_STREAM_CONTRACT_ID used by stellar-config.ts.
  2. Fall back to the active network's contractId, never a truncated placeholder.
  3. Drop NEXT_PUBLIC_STREAMING_CONTRACT from .env.example.

Target Files

  • frontend/src/app/settings/settings-content.tsx
  • frontend/src/lib/stellar-config.ts
  • frontend/.env.example

Acceptance Criteria

  • [ ] Settings displays the real active contract address or an explicit "not configured" state.
  • [ ] One env var names the contract across the frontend.
  • [ ] No placeholder strings render as configuration values.

blurbeast avatar Nov 18 '26 19:11 blurbeast

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

i can solve

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

abercrombie04 avatar Nov 21 '26 07:11 abercrombie04

Congratulations, @abercrombie04! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

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

drips-wave[bot] avatar Nov 21 '26 07:11 drips-wave[bot]

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

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

drips-wave[bot] avatar Nov 21 '26 17:11 drips-wave[bot]