Resolving Disputes
Last updated
Was this helpful?
Last updated
Was this helpful?
If the dispute is on a live network, it will be resolved by the on Ethereum, and the results returned within 48-72 hours (depending on when the dispute was raised during the DVM voting cycle).
If you are testing the dispute flow on Görli, you will need to manually resolve the dispute through the . This contract stands in for the DVM on Görli and allows you to manually return your own values for testing purposes.
Go to the on Görli Etherscan.
Click 'Write Contract.'
Click 'Connect to Web3' to connect your wallet.
Click 'OK' on the pop-up that warns you that writing to contracts on Etherscan is a beta test feature.
Connect through your wallet interface, and switch networks to Görli if necessary.
Click pushPrice
to see the parameters you will need to enter.
Enter the original request's identifier
, time
, and ancillaryData
, and enter the value you want to return for price
.
Click 'Write' and submit the transaction.
Depending on how the contract you are testing was written, you may need to call settleAndGetPrice
from your contract to the Optimistic Oracle contract to get the value returned from the mock oracle, or you may be able to call settle
on the Optimistic Oracle and have your contract automatically receive and handle the return value with a priceSettled
callback function.