Flux docs
Search…
⌃K

2.1. Global configuration

The oracle config is referenced internally by most methods on the oracle when called. The structure is:
OracleConfig {
gov: Address, // Flux DAO
final_arbitrator: Address,
stake_token: Address, // FLX token
payment_token: Address, // for validity bond
max_outcomes: Number,
validity_bond: Balance, // in payment_token
fee: FeeConfig, // see next section
default_challenge_window_duration: Number, // seconds
min_initial_challenge_window_duration: Number, // seconds
final_arbitrator_invoke_amount: Number // in FLX
}
Where:
  • gov is the Flux DAO public address with privileges to:
    • Add/remove a requester to the Requester Registry
    • Update the config (shown above)
    • Update the fee config (shown in the next section)
    • Upgrade the smart contract to a new implementation
  • final_arbitrator is a public address with privileges to finalize a data request by manually passing an outcome only if the bond size reaches the final_arbitrator_invoke_amount
  • stake_token is is a public address of the token used as the bond of a data request that
  • payment_token is the public address of the token used to pay the validity bond when creating a data request
  • validity_bond is the amount of payment_token needed to create a data request
  • max_outcomes is the maximum number of fixed outcomes that can be passed for a data request with preset outcomes
  • default_challenge_window_duration is the default time a resolution window lasts in seconds
  • min_initial_challenge_window_duration is the minimum time a resolution window can last in seconds
  • final_arbitrator_invoke_amount is the amount of tokens the bond size for a data request needs to reach in order for the final arbitrator to be triggered
  • fee is described in the next section