feat(orders): show effective fiat/USD rate on market-price offer cards
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start in lib/features/home/widgets/order_list_item.dart, where the "Market price" caption sits under the amount on market-price cards, and trace how exchangeRateProvider(<fiatCode>) and the USD rate from the kind 30078 mostro-rates event are read. Done means market-price cards show ~<effective rate> <fiat>/USD using the maker's premium, fixed-sats cards are unchanged, and the card falls back to "Market price" when no rate is available. Locale strings and regenerated golden images are part of the change.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
On the order book, a market-price offer shows its fiat amount and the premium against the market, but not the rate an offer actually represents. With a market-price offer, the user pays/receives market rate × (1 + premium/100); comparing two offers in the same currency means mentally applying each creator's premium to the market rate every time.
Proposal
On market-price offer cards in the public order book (lib/features/home/widgets/order_list_item.dart), replace the "Market price" caption under the amount with the effective cross rate the offer represents once the creator's premium is applied:
effectiveFiatPerBtc = marketFiatPerBtc × (1 + premium/100)
effectiveFiatPerUsd = effectiveFiatPerBtc / usdPerBtc
- Shown for every market-price offer (0% premium, premium, or discount) and any fiat currency.
- Rendered as e.g.
~305.40 CUP/USDusing the active locale's number formatting. - Only in the offer list — not repeated on the take-order or trade screens.
- Fixed-sats offers are unaffected and do not subscribe to rate providers.
- When the rate cannot be computed (the node publishes no rate for that currency, the kind 30078
mostro-ratesevent is missing/expired, or the fetch errors), the card keeps the current "Market price" caption.
The rates come from the existing exchangeRateProvider(<fiatCode>) and the USD rate, both already surfaced by the node's mostro-rates event. This is display logic only: no Rust/core, protocol, or bridge changes.
Reference currency is USD for now; a user-configurable reference could follow later.
Result (reference)
This is the same screen on the v1 app (mobile_mostro), where the feature is already implemented and user-visible — every market-price row shows the effective rate in its card:
Acceptance criteria
- Market-price offer cards show
~<effective rate> <fiat>/USDunder the amount. - Zero-premium, premium and discounted offers all compute correctly from the maker's premium.
- Fixed-sats cards render exactly as they do today (and create no rate providers).
- When no rate is available, the card falls back to "Market price".
- All locales updated; the rate formatted with the active locale.
- Golden images of the offer card regenerated.
- Lenguaje dominante
- Dart
- Estrellas
- 11
- Forks
- 9
- Merge medio
- 2 d 1 h
- PR fusionados (30 d)
- 16
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de MostroP2P/app
-
documentation priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 1 día
-
area: ui bug priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
NWC: the pay and buyer-invoice readouts are zero-size, so no accessibility tree carries themAbiertoarea: ui bug priority: high
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Bug: Button "Share logs" does nothingPosiblemente ocupada @Luquitasjeffrey la tomó hace 7 días. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
area: rust-core bug priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
Todos los issues de MostroP2P/app
Issues similares
-
Python example: list a model's scenes and their camerasPosiblemente ocupada @rudraparmar76 la tomó hoy. Abiertodocumentation good first issue python
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
iamahsanmehmood/openskp#796 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)Abiertobug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
crowdin/flutter-sdk#97 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
MrSpideyNihal/lockfeed#16 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
InlitX/GymMane#529 · 1 comentario ·
Los mantenedores suelen responder en 1 día