pub trait PullOraclePriceConsumer {
// Required methods
fn feed_ids(&mut self) -> impl Future<Output = Result<FeedIds>>;
fn process_feeds(
&mut self,
provider: PriceProviderKind,
map: FeedAddressMap,
) -> Result<()>;
}
Expand description
Pull Oracle Price Consumer.
Required Methods§
Sourcefn feed_ids(&mut self) -> impl Future<Output = Result<FeedIds>>
fn feed_ids(&mut self) -> impl Future<Output = Result<FeedIds>>
Returns a reference to tokens and their associated feed IDs that require price updates.
Sourcefn process_feeds(
&mut self,
provider: PriceProviderKind,
map: FeedAddressMap,
) -> Result<()>
fn process_feeds( &mut self, provider: PriceProviderKind, map: FeedAddressMap, ) -> Result<()>
Processes the feed address map returned from the pull oracle.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.