Skip to main content
Sovran supports multiple fiat currency displays for your Bitcoin balance. Choose from USD, EUR, GBP, or display in sats with customizable formatting.

Supported Currencies

USD

United States Dollar (Default)

EUR

Euro

GBP

British Pound Sterling

Sats

Bitcoin satoshis (native)

Currency Configuration

The display currency is managed through the settingsStore:
stores/settingsStore.ts

Sats Display Modes

Sovran offers 4 different ways to display satoshi amounts:
1

Mode 0: Bitcoin Icon Prefix

₿ 0.00012345 — Shows BTC icon with 8 decimal places
2

Mode 1: Lightning Icon Suffix

12,345 ⚡ — Shows sats with lightning bolt
3

Mode 2: Text-only Sats

12,345 sats — Plain text format
4

Mode 3: Alternative BTC Icon

₿ 0.00012345 — Alternative BTC display (same as mode 0)

Setting Display Mode

Price Data Management

Exchange rates are fetched and stored in the pricelistStore.

Pricelist Store

stores/pricelistStore.ts

Setting Exchange Rates

Retrieving Prices

Price Staleness Check

Check if cached prices are outdated:

Fiat Currency Pill Component

The FiatCurrencyPill component displays fiat equivalents with currency selection.

Basic Usage

components/blocks/FiatCurrencyPill.tsx

Props

Currency Selection Menu

On iOS with liquid glass support, the pill shows a native context menu:

Fallback Behavior

On Android or older iOS versions, currency selection uses ActionSheetIOS:

Amount Formatter

The AmountFormatter component handles all currency display logic.

Basic Usage

components/ui/AmountFormatter.tsx

Props

Display Modes

Type-based Colors

Currency Formatting Utilities

The helper/currency.ts module provides formatting functions.

Format Amount

helper/currency.ts

Currency Symbols

Exchange Rate Conversion

All conversions route through BTC as the base unit:

Number Formatting

Fiat Storage Format

Fiat amounts are stored as cents (not dollars) to avoid floating-point errors:

Complete Example

Here’s a complete example showing currency selection and display:

Best Practices

Always provide fallback exchange rates:
Check price staleness before displaying fiat values:
Never perform currency conversions on the frontend without validated exchange rates. Always fetch from a trusted price feed.

Themes

Customize your wallet appearance

Settings Overview

Configure all app preferences