Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#232 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@OpadijoIdris ci sta già lavorando.

Dal 20/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug frontend GrantFox OSS Maybe Rewarded Official Campaign | FWC26

Problem

lib/fee-utils.ts:12,22 hardcodes XLM_PRICE = 0.12 for USD fee estimates. This is completely disconnected from the live price already fetched elsewhere in the app by hooks/use-token-price.ts.

Impact

The fee-in-USD figure shown to users (e.g. on the create-stream confirmation dialog) can be arbitrarily wrong whenever the real XLM price diverges from the hardcoded $0.12 — which it will, over time, as the price moves. Users may make decisions based on a stale/incorrect fee estimate.

Suggested fix

Reuse the live price already fetched by use-token-price.ts (or a shared price cache) instead of a hardcoded constant in fee-utils.ts, so both surfaces stay consistent and accurate.

Location

  • lib/fee-utils.ts:12,22
  • hooks/use-token-price.ts (existing live price source)
Lingua principale
TypeScript
Stelle
1
Fork
144
Merge medio
9h 45m
PR unite (30g)
74

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di FlowwStar/FlowStar

Tutte le issue di FlowwStar/FlowStar

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.