You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -84,9 +84,9 @@ It should be noted that while feed deviation is calculated, it is only used as a
84
84
85
85
You can visualize the interval/deviation as resembling the harmonic series times MaxInterval/MaxDeviationBasisPoint, with the step of PowerStepThreshold.
86
86
87
-
#### Supported Feeds
87
+
#### Current Feeds
88
88
89
-
The list of currently supported feeds includes those with power exceeding the PowerStepThreshold parameter and ranking within the top `MaxSupportedFeeds`. The supported feeds will be re-calculated on every `SupportedFeedsUpdateInterval` block(s). Validators are only required to submit their prices for the supported feeds.
89
+
The list of currently supported feeds includes those with power exceeding the PowerStepThreshold parameter and ranking within the top `MaxCurrentFeeds`. The current feeds will be re-calculated on every `CurrentFeedsUpdateInterval` block(s). Validators are only required to submit their prices for the current feeds.
90
90
91
91
### Validator Price
92
92
@@ -114,11 +114,11 @@ ReferenceSourceConfig is stored in the global store `0x00` to hold Reference Sou
// MaxInterval is the maximum limit of every feeds' interval (in seconds).
180
-
// If the calculated interval of a feed is higher than this, it will not be recognized as a supported feed.
180
+
// If the calculated interval of a feed is higher than this, it will not be capped at this value.
181
181
int64 max_interval = 5;
182
182
183
-
// PowerStepThreshold is the amount of minimum power required to put feed in the supported list.
183
+
// PowerStepThreshold is the amount of minimum power required to put feed in the current feeds list.
184
184
int64 power_step_threshold = 6;
185
185
186
-
// MaxSupportedFeeds is the maximum number of feeds supported at a time.
187
-
int64 max_supported_feeds = 7;
186
+
// MaxCurrentFeeds is the maximum number of feeds supported at a time.
187
+
uint64 max_current_feeds = 7;
188
188
189
189
// CooldownTime represents the duration (in seconds) during which validators are prohibited from sending new prices.
190
190
int64 cooldown_time = 8;
@@ -195,8 +195,8 @@ message Params {
195
195
// MaxDeviationBasisPoint is the maximum limit of every feeds' deviation (in basis point).
196
196
int64 max_deviation_basis_point = 10;
197
197
198
-
// SupportedFeedsUpdateInterval is the number of blocks after which the supported feeds will be re-calculated.
199
-
uint64 supported_feeds_update_interval = 11;
198
+
// CurrentFeedsUpdateInterval is the number of blocks after which the current feeds will be re-calculated.
199
+
int64 current_feeds_update_interval = 11;
200
200
}
201
201
```
202
202
@@ -233,7 +233,7 @@ This message is expected to fail if:
233
233
* validator's oracle status is not active.
234
234
* timestamp is too different from block time.
235
235
* the price is submitted in the `CooldownTime` param.
236
-
* the signals of the prices are not in the supported feeds.
236
+
* the signals of the prices are not in the current feeds.
237
237
238
238
### MsgUpdateReferenceSourceConfig
239
239
@@ -315,8 +315,8 @@ Each abci end block call, the operations to update prices.
315
315
316
316
### Update Prices
317
317
318
-
At every end block, the Validator Price of all supported feeds will be obtained and checked if it is within the acceptance period (1 interval).
319
-
Any validator that does not submit a price within this period is considered to have miss-reported and will be deactivated unless the Supported feeds are in a grace period.
318
+
At every end block, the Validator Price of all current feeds will be obtained and checked if it is within the acceptance period (1 interval).
319
+
Any validator that does not submit a price within this period is considered to have miss-reported and will be deactivated unless the current feeds are in a grace period.
320
320
Accepted Validator Prices of the same SignalID will be weighted and median based on the recency of the price and the power of the validator who submitted the price.
321
321
The median price is then set as the Price. Here is the price aggregation logic:
322
322
@@ -366,25 +366,25 @@ A list of PriceFeedInfo objects, each containing:
366
366
- Compute the weighted median of the generated points to determine the final aggregated price.
367
367
- The weighted median price is the price at which the cumulative power (sorted by increasing price) crosses half of the total weighted power.
368
368
369
-
### Update supported feeds
369
+
### Update current feeds
370
370
371
-
At every `BlocksPerFeedsUpdate` block(s), the supported feeds will be re-calculated based on the parameters of the module (e.g. `MinInterval`, `MaxSupportedFeeds`).
371
+
At every `BlocksPerFeedsUpdate` block(s), the current feeds will be re-calculated based on the parameters of the module (e.g. `MinInterval`, `MaxCurrentFeeds`).
0 commit comments