Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

151
Vistas
Javascript Crypto to Fiat Fee Calculator by Rate

So I'm trying to make a platform that takes for example 2% fee for converting Fiat to Crypto or vice versa, and want to calculate the fees for both options, when user wants to convert from crypto to fiat, to show him the value in fiat, also when it wants to convert fiat to crypto to show the value in fiat.

Example: 1BTC = x amount and the fee will be $29

// The pairs are all against USD , e.g. 1 BTC = 40,000$
export const cryptocurrencies = [
  {
    Name: 'Bitcoin',
    Symbol: 'BTC',
    Rate: 40000,
  },
  {
    Name: 'Tether',
    Symbol: 'USDT',
    Rate: 1,
  },
];

export const fiat = [
  {
    Name: 'US Dollar',
    Symbol: 'USD',
    Rate: 1,
  },
  {
    Name: 'Euro',
    Symbol: 'EUR',
    Rate: 0.9258, // USD to EUR
  },
];

I have no idea on how this can be done.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda