v2.0.2
v2.0.2 — Fedi Mini-App stays fully on internal ecash: NWC hidden, funding route hardened
Compatible — no LOCK/escrow format change; drop-in over 2.0.1. Outside the
Fedi WebView nothing changes.
Fedi WebView — NWC disabled everywhere
- App detects the Fedi WebView (isFediWebViewSignInEnvironment, keyed on
hasFediInternal) and passes disableNwc down to the funding and trade-detail
surfaces. - AtomicFundingModal: the saved-NWC one-tap strip and the paste-new-NWC
disclosure are hidden; saved NWC connections aren't loaded at all. - ClaimPayoutModal and RecoveryPayoutModal receive an empty saved-NWC list in
Fedi, so payouts land in the Fedi wallet rather than an external wallet. - TradeDetail: the one-tap activeNwc shortcut is suppressed; the direct-NWC
lock and claim handlers return early with an info toast ("Fedi uses its
built-in ecash flow here — NWC is disabled." / "Fedi claims directly into
your Fedi wallet — NWC is disabled.").
Funding route — internal ecash always wins when Fedi is present
- useEscrow.fundAndLock drops the fundingMethod !== "nwc" carve-out: whenever
window.fediInternal.generateEcash exists, locks fund over Fedi internal
ecash unconditionally. NWC is no longer selectable inside Fedi, so the
carve-out was unreachable; removing it closes the gap where a stale saved
funding method could detour a Fedi lock onto a Lightning/NWC receive.