Oracle
Structs
Oracle
struct Oracle<phantom Witness: drop> has key, store {
id: UID,
// Set of module Witnesses that are allowed to report prices.
feeds: VecSet<TypeName>,
// Reported prices must have a timestamp earlier than `current_timestamp - time_limit`.
// It is in milliseconds.
time_limit: u64,
// Reported prices must be within the following range: `leader_price + deviation % >= reported_price >= leader_price - deviation %`.
deviation: u256
} Report
Price
Interface
new
share
request
report
destroy_request
destroy_price
feeds
feeds
time_limit
deviation
uid
oracle
price
decimals
timestamp
uid_mut
add
remove
update_time_limit
update_deviation
new_price_for_testing
Last updated