Kujira.Oracle (kujira v0.1.80)
Utility functions for querying the on-chain oracle
Summary
Functions
Loads the price for a specfic price from the on-chain oracle
Loads all prices from the on-chain oracle
Functions
Link to this function
load_price(channel, denom)
@spec load_price(GRPC.Channel.t(), any()) :: {:ok, Decimal.t()} | {:error, GRPC.RPCError.t()}
Loads the price for a specfic price from the on-chain oracle
Link to this function
load_prices(channel)
@spec load_prices(GRPC.Channel.t()) :: {:ok, map()} | {:error, GRPC.RPCError.t()}
Loads all prices from the on-chain oracle