diff --git a/lib/godwoken_explorer/graphql/resolovers/udt.ex b/lib/godwoken_explorer/graphql/resolovers/udt.ex index 104bc8ee..d3a67898 100644 --- a/lib/godwoken_explorer/graphql/resolovers/udt.ex +++ b/lib/godwoken_explorer/graphql/resolovers/udt.ex @@ -86,7 +86,7 @@ defmodule GodwokenExplorer.Graphql.Resolvers.UDT do if exchange_rate == 0 do Decimal.new(0) else - exchange_rate + Decimal.new(exchange_rate) end {:ok, %{symbol: symbol, exchange_rate: exchange_rate, timestamp: timestamp}}