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

No route answers what an asset is worth in naira

Chiusa
#290 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@dmoonventure070-art ci sta già lavorando.

Dal 16/10/2026.

  • #469 di @sparkysolutions10-pixel — aperta
  • #529 di @sparkysolutions10-pixel — aperta
  • #588 di @dmoonventure070-art — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area:pricing difficulty:intermediate epic:analytics help wanted points:150 Stellar Wave
Background

Every price in Lens is quoted against another asset. The wallet consuming it serves users whose unit of account is naira, and it converts on its own, which means the conversion is unreviewable and inconsistent between clients.

What to build
  • GET /price/:asset/fiat?currency=NGN returning the asset's price in a fiat currency, naming the rate source and its age.
  • Several currencies, from configuration, with the ones Lens cannot source refused explicitly.
  • Never invent a cross rate without saying which two rates it was built from.
Acceptance criteria
  • Fiat-denominated prices with the rate source and its age named
  • Unsupported currencies are refused with a list of supported ones
  • A cross rate states both legs
  • A stale fiat rate is marked, not silently used

Drips Wave · Complexity: Intermediate · 150 points


Repo: Divinity-Labs/Lens. Node + Fastify + Prisma + Postgres. Tests are vitest (npm test), not jest — jest against this repo fails every file and tells you nothing.

?network= is not optional on a new route. Every row carries a network and the indexes lead with it. Read req.network ?? activeNetwork, filter on it, echo it in the response, and declare the parameter in openapi.yaml. tests/openapi.test.ts boots the server and fails if a registered route is missing from the spec.

A number without provenance is not an answer. Every figure this batch adds must carry what it was computed from: which venues, how many samples, how fresh. The point of Lens is that its numbers can be checked.

Never elide a contract id or an issuer. Take addresses from the protocol's own documentation and write them whole. A sibling repo's issue wrote CD2W5LUR…XZ4L and five contributors invented plausible contract ids to fill the gap.

Say when you cannot answer. An asset with no liquidity, a pair with one venue, a window with a gap — each has an honest answer that is not zero and not a 500. Zero is a number people act on.


Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk

Lingua principale
TypeScript
Stelle
4
Fork
71
Merge medio
3g 15h
PR unite (30g)
157

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 Divinity-Labs/Lens

Tutte le issue di Divinity-Labs/Lens

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.