[Audit] Token-symbol resolution duplicated across three files with no single source of truth
Filed from the second-wave repository audit (issue 62/100). See the audit summary for full category context.
- Location:
frontend/src/lib/dashboard.ts:71-77,frontend/src/lib/api/streams.ts:36-42,frontend/src/app/streams/[id]/stream-details-content.tsx:50-54 - Problem: Three independent
resolveTokenLabel/TOKEN_SYMBOLSimplementations exist; a new token added toTOKEN_ADDRESSESinlib/soroban.tsmust be manually kept in sync with the third file's hardcoded map, or that page silently mis-renders the symbol. - Evidence: Three separate implementations of the same address→symbol mapping.
- Suggested implementation: Extract one shared
resolveTokenLabelutil (deriving fromTOKEN_ADDRESSES) and import it in all three locations. - Acceptance criteria: Adding a new token to
TOKEN_ADDRESSEScorrectly resolves its symbol on all three surfaces with a single code change. - Difficulty: S
- Expected impact: Removes a silent-drift bug source that only surfaces when a new token is added.
@enny791 has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
please assign
ℹ️ Repo Maintainers: To accept this application, review their application or assign @enny791 to this issue.
@ayomustap has applied to work on this issue as part of the Stellar Wave Program's 8th wave.
Hi maintainer, Kindly assign. I can fix this issue
ℹ️ Repo Maintainers: To accept this application, review their application or assign @ayomustap to this issue.
Congratulations, @enny791! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on August 31, 2026.
🧑💻 @enny791: 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 🌊
This issue has been removed from the Stellar Wave Program by the repository maintainers.
@enny791, you have been unassigned from this issue. If you have any questions, please reach out to the repo maintainers.
@pheelztech has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
i would love to work on this issue
ℹ️ Repo Maintainers: To accept this application, review their application or assign @pheelztech to this issue.
Congratulations, @pheelztech! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @pheelztech: 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 🌊
This issue has been completed by @pheelztech as part of the Stellar Wave Program's 11th Wave 🥳
😎 @pheelztech: 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.