Aggregation Library
The Aggregation Library is a collection of smart contracts that provides reliable on-chain data aggregation for various use cases. Each method addresses specific data scenarios to maintain accuracy and integrity in decentralized environments.
Considerations for choosing the proper aggregation:
Time-variance. Since time is continuous, fetchers access the source at slightly different times. We donโt expect the time differences to be significant; more particularly, the time differences should not exceed one second, which is the rate of our blockchain i\o.
Simplicity. It is crucial due to runtime considerations and explaining to users how our mechanism works (KISS/Occamโs razor).
(Honest) mistakes. Although we have incentive mechanisms to punish/reward fetchersโ behavior, mistakes are unavoidable. For instance, downtime, latency, etc. These can happen even if fetchers are honest and thus should be accounted for.
Malicious behavior. Our solution should be as robust as possible to attacks. Namely, it should minimize the consequences of an attack and facilitate punishing attackers.
For detailed explanations, please refer to Robust Aggregation 101
For some shor example for aggregation methods please refer to Median
Last updated