File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
target_chains/ethereum/sdk/solidity Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,15 @@ contract PythStructs {
40
40
uint endTime;
41
41
// TWAP price
42
42
Price twap;
43
- // Down slot ratio
43
+ // Down slot ratio represents the ratio of price feed updates that were missed or unavailable
44
+ // during the TWAP period, expressed as a fixed-point number between 0 and 1e6 (100%).
45
+ // For example:
46
+ // - 0 means all price updates were available
47
+ // - 500_000 means 50% of updates were missed
48
+ // - 1_000_000 means all updates were missed
49
+ // This can be used to assess the quality/reliability of the TWAP calculation.
50
+ // Applications should define a maximum acceptable ratio (e.g. 100000 for 10%)
51
+ // and revert if downSlotsRatio exceeds it.
44
52
uint32 downSlotsRatio;
45
53
}
46
54
You can’t perform that action at this time.
0 commit comments