Flux docs
Search…
2.1. Global configuration
The oracle config is referenced internally by most methods on the oracle when called. The structure is:
1
OracleConfig {
2
gov: Address, // Flux DAO
3
final_arbitrator: Address,
4
stake_token: Address, // FLX token
5
payment_token: Address, // for validity bond
6
max_outcomes: Number,
7
validity_bond: Balance, // in payment_token
8
fee: FeeConfig, // see next section
9
default_challenge_window_duration: Number, // seconds
10
min_initial_challenge_window_duration: Number, // seconds
11
final_arbitrator_invoke_amount: Number // in FLX
12
}
Copied!
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
Export as PDF
Copy link