Skip to content

Commit

Permalink
fix: exchange_rate should be decimal
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Jan 4, 2024
1 parent d855653 commit fe4f798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/godwoken_explorer/graphql/resolovers/udt.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit fe4f798

Please sign in to comment.