Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
netboz committed Dec 14, 2022
1 parent 67206ea commit 1bb00eb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/archethic/oracle_chain/services/uco_price.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ defmodule Archethic.OracleChain.Services.UCOPrice do
result

{:error, reason} ->
Logger.warning(
"Service : #{inspect(__MODULE__)} : Cannot fetch values from
provider: #{inspect(provider)} with reason : #{inspect(reason)}. Discarding entry."
)
Logger.warning("Service : #{inspect(__MODULE__)} : Cannot fetch values from
provider: #{inspect(provider)} with reason : #{inspect(reason)}.")

{false, provider}
end
Expand All @@ -37,7 +35,7 @@ defmodule Archethic.OracleChain.Services.UCOPrice do
|> List.flatten()

## split prices in a list per currency. If a service returned a list of prices of a currency,
## they will be meaned before being added to list
## they will be medianed first before being added to list
|> split_prices()
## compute median per currency list
|> median_prices()
Expand Down

0 comments on commit 1bb00eb

Please sign in to comment.