Skip to content

Commit

Permalink
chore: increase default fiat amount
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro committed Mar 21, 2024
1 parent 9303203 commit 034326f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 034326f

Please sign in to comment.