Mhairi
September 13, 2022, 2:39pm
1
This UMIP will result in the creation of a new optimistic oracle contract with enhanced control over pricing request callbacks, which will only be executed if the requester has declared its readiness to receive them. This modification also eliminates the use of try-catch structures, which were vulnerable to gas griefing. Additionally, the contract includes a new event-based price request, which is suitable for requests that depend on events without a fixed date, thereby evaluating pricing requests at the time of proposal. This will enable the implementation of a more robust and adaptable price requests.
## Headers
| UMIP-162 | |
|------------|---------------------------------|
| UMIP Title | Add OptimisticOracleV2 |
| Authors | Pablo Maldonado (pablo@umaproject.org) |
| Status | Approved |
| Created | June 21, 2022 |
## Summary (2-5 sentences)
This UMIP will result in the creation of a new optimistic oracle contract with enhanced control over pricing request callbacks, which will only be executed if the requester has declared its readiness to receive them. This modification also eliminates the use of try-catch structures, which were vulnerable to gas griefing. Additionally, the contract includes a new event-based price request, which is suitable for requests that depend on events without a fixed date, thereby evaluating pricing requests at the time of proposal. This will enable the implementation of a more robust and adaptable price requests.
## Motivation
Prior to the addition of this Optimistic Oracle, callbacks were executed whenever they were present in the requester contract, without the ability to control when this occurred. Additionally, the use of try-catch posed a risk. Similarly, there was no price request type that could be adapted to the request requirements associated with unscheduled, spontaneous events.
## Technical Specification
To accomplish this upgrade, a few actions will need to be taken:
- A new `OptimisticOracleV2` contract has been deployed in the following networks:
* Mainnet: [0xA0Ae6609447e57a42c51B50EAe921D701823FFAe](https://etherscan.io/address/0xA0Ae6609447e57a42c51B50EAe921D701823FFAe)
* Polygon: [0xee3afe347d5c74317041e2618c49534daf887c24](https://polygonscan.com/address/0xee3afe347d5c74317041e2618c49534daf887c24)
* Optimism: [0x255483434aba5a75dc60c1391bB162BCd9DE2882](https://optimistic.etherscan.io/address/0x255483434aba5a75dc60c1391bB162BCd9DE2882)
This file has been truncated. show original