Kujira.Oracle (kujira v0.1.14)

Utility functions for querying the on-chain oracle

Summary

Functions

Loads the price for a specfic price 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

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