Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Unreleased
- Improve sats amount readability adding thousands separator
- Update minimum supported buntu version to 20.04+
- Add support for Czech Crown (CZK)
- Add support for Zloty (PLN)

## 4.37.0
- Bundle BitBox02 firmware version v9.14.0
Expand Down
4 changes: 4 additions & 0 deletions backend/rates/gecko.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ var (
"BRL": "brl",
"NOK": "nok",
"SEK": "sek",
"PLN": "pln",
"CZK": "czk",
}

// Copied from https://api.coingecko.com/api/v3/simple/supported_vs_currencies.
Expand All @@ -121,5 +123,7 @@ var (
"brl": "BRL",
"nok": "NOK",
"sek": "SEK",
"pln": "PLN",
"czk": "CZK",
}
)
4 changes: 3 additions & 1 deletion backend/rates/rates.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
const (
// Latest rates are fetched for all these (coin, fiat) pairs.
simplePriceAllIDs = "bitcoin,litecoin,ethereum,basic-attention-token,dai,chainlink,maker,sai,usd-coin,tether,0x,wrapped-bitcoin,pax-gold"
simplePriceAllCurrencies = "usd,eur,chf,gbp,jpy,krw,cny,rub,cad,aud,ils,btc,sgd,hkd,brl,nok,sek"
simplePriceAllCurrencies = "usd,eur,chf,gbp,jpy,krw,cny,rub,cad,aud,ils,btc,sgd,hkd,brl,nok,sek,pln,czk"
// RatesEventSubject is the Subject of the event generated by new rates fetching.
RatesEventSubject = "rates"
)
Expand All @@ -66,13 +66,15 @@ const (
CAD Fiat = "CAD"
CHF Fiat = "CHF"
CNY Fiat = "CNY"
CZK Fiat = "CZK"
EUR Fiat = "EUR"
GBP Fiat = "GBP"
HKD Fiat = "HKD"
ILS Fiat = "ILS"
JPY Fiat = "JPY"
KRW Fiat = "KRW"
NOK Fiat = "NOK"
PLN Fiat = "PLN"
RUB Fiat = "RUB"
SEK Fiat = "SEK"
SGD Fiat = "SGD"
Expand Down
2 changes: 1 addition & 1 deletion frontends/web/src/api/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type CoinCode = 'btc' | 'tbtc' | 'ltc' | 'tltc' | 'eth' | 'goeth';

export type AccountCode = string;

export type Fiat = 'AUD' | 'BRL' | 'BTC' | 'CAD' | 'CHF' | 'CNY' | 'EUR' | 'GBP' | 'HKD' | 'ILS' | 'JPY' | 'KRW' | 'NOK' | 'RUB' | 'SEK' | 'SGD' | 'USD';
export type Fiat = 'AUD' | 'BRL' | 'BTC' | 'CAD' | 'CHF' | 'CNY' | 'CZK' | 'EUR' | 'GBP' | 'HKD' | 'ILS' | 'JPY' | 'KRW' | 'NOK' | 'PLN' | 'RUB' | 'SEK' | 'SGD' | 'USD';

export type ConversionUnit = Fiat | 'sat'

Expand Down
2 changes: 2 additions & 0 deletions frontends/web/src/components/balance/balance.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ describe('components/balance/balance', () => {
CAD: '512',
CHF: '512',
CNY: '512',
CZK: '512',
EUR: '512',
GBP: '512',
HKD: '512',
ILS: '512',
JPY: '512',
KRW: '512',
NOK: '512',
PLN: '512',
RUB: '512',
SEK: '512',
SGD: '512',
Expand Down
2 changes: 1 addition & 1 deletion frontends/web/src/components/rates/rates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface SharedProps {
btcUnit: BtcUnit;
}

export const currencies: Fiat[] = ['AUD', 'BRL', 'CAD', 'CHF', 'CNY', 'EUR', 'GBP', 'HKD', 'ILS', 'JPY', 'KRW', 'NOK', 'RUB', 'SEK', 'SGD', 'USD', 'BTC'];
export const currencies: Fiat[] = ['AUD', 'BRL', 'CAD', 'CHF', 'CNY', 'CZK', 'EUR', 'GBP', 'HKD', 'ILS', 'JPY', 'KRW', 'NOK', 'PLN', 'RUB', 'SEK', 'SGD', 'USD', 'BTC'];

export const store = new Store<SharedProps>({
active: 'USD',
Expand Down
2 changes: 2 additions & 0 deletions frontends/web/src/routes/account/send/feetargets.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ describe('routes/account/send/feetargets', () => {
CAD: '0.02',
CHF: '0.01',
CNY: '0.08',
CZK: '0.06',
EUR: '0.02',
GBP: '0.02',
HKD: '19880',
NOK: '0.02',
ILS: '0.02',
JPY: '1.30',
KRW: '14.43',
PLN: '2',
RUB: '0.88',
SEK: '0.1',
SGD: '32233',
Expand Down