From 034326ffe12f087cf20050c979bb8535e68d3427 Mon Sep 17 00:00:00 2001 From: Jean Ribeiro Date: Thu, 21 Mar 2024 20:56:15 -0300 Subject: [PATCH] chore: increase default fiat amount --- .../views/dashboard/buy-sell/views/BuySellMainView.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/desktop/views/dashboard/buy-sell/views/BuySellMainView.svelte b/packages/desktop/views/dashboard/buy-sell/views/BuySellMainView.svelte index 3bd5b089b8..5de044821d 100644 --- a/packages/desktop/views/dashboard/buy-sell/views/BuySellMainView.svelte +++ b/packages/desktop/views/dashboard/buy-sell/views/BuySellMainView.svelte @@ -65,16 +65,17 @@ } function getDefaultFiatAmount(currency: MarketCurrency): number { + const DEFAULT_FIAT_AMOUNT = 1000 switch (currency) { case MarketCurrency.Usd: case MarketCurrency.Eur: case MarketCurrency.Gbp: - return 100 + return DEFAULT_FIAT_AMOUNT default: { const conversionRate = $marketCoinPrices[MarketCoinId.Iota]?.[currency] / $marketCoinPrices[MarketCoinId.Iota]?.[MarketCurrency.Usd] - const fiatAmount = 100 * conversionRate + const fiatAmount = DEFAULT_FIAT_AMOUNT * conversionRate const roundedAmount = customRound(fiatAmount) return roundedAmount }