feat(orders): show effective fiat/USD rate on market-price offer cards
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Dart
- スター
- 11
- フォーク
- 9
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 16
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MostroP2P/app のほかの issue
-
documentation priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
area: ui bug priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area: ui bug priority: high
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
Bug: Button "Share logs" does nothing対応中かも @Luquitasjeffrey が 7 日前に担当しました。 オープン
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
area: rust-core bug priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
Python example: list a model's scenes and their cameras対応中かも @rudraparmar76 が今日担当しました。 オープンdocumentation good first issue python
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
iamahsanmehmood/openskp#796 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Plural rendering: first matching part wins, but gen-l10n lets the last one win (=1 shadows one)オープンbug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
crowdin/flutter-sdk#97 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
MrSpideyNihal/lockfeed#16 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
InlitX/GymMane#529 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信