From 07d606ea254b38bb392250413a0a50718b64a918 Mon Sep 17 00:00:00 2001 From: bchamagne Date: Thu, 21 Dec 2023 09:42:49 +0100 Subject: [PATCH] fix conversion to eur/usd --- .../live/components/deploy_component.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/archethic_playground_web/live/components/deploy_component.ex b/lib/archethic_playground_web/live/components/deploy_component.ex index d8cecab..eec6e2e 100644 --- a/lib/archethic_playground_web/live/components/deploy_component.ex +++ b/lib/archethic_playground_web/live/components/deploy_component.ex @@ -154,11 +154,13 @@ defmodule ArchethicPlaygroundWeb.DeployComponent do eur: uco |> Kernel.*(eur_rate) + |> trunc() |> Archethic.Utils.from_bigint() |> Float.round(3), usd: uco |> Kernel.*(usd_rate) + |> trunc() |> Archethic.Utils.from_bigint() |> Float.round(3) })