-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
UMA could take a role of a Dispute Resolver in Boson. If the dispute is escalated, it can be offloaded to UMA, where it would be resolved via an optimistic oracle, and the resolution would be submitted to the Boson protocol.
The solution should not require any change of the Boson protocol and could serve as an example how can external DR mechnisms can be plugged into Boson.
The adapter should have the methods that allow both interaction with Boson and UMA.
- Register itself as a DR resolver in Boson.
- Call
createDisputeResolverin Boson. Either do it in the constructor, or have a restricted method to do it. The constructor (or a dedicated method) should allow the deployer to specify_disputeResolverFeesand_sellerAllowList, whileDisputeResolver memory _disputeResolverparameter should be constructed in the contract itself. The deployer should not be able to callupdateDisputeResolver, since it would allow them to take over the DR entity and resolve the issue even if it was expected that UMA will do it.
- Call
addFeesToDisputeResolverandremoveFeesFromDisputeResolvershould be implemented in the adapter, since these parameters can change over time. They should be callable only by the owner (deployer).- If a seller wants to use UMA for DR, they just specifiy UMA's ID when they create the offer.
- When escalate dispute is called in the protocol:
- MVP: Buyer needs to manually call uma adapter to make an asserion in UMA.
- UMA adapter should verifiy that dispute was escalated in the protocol
- UMA adapter should call OptimisticOracleV3.assertTruth.
claimshould include dispute information, especiallyexhangeIdandbuyerPercent. It can include additional data that helps with the resolutionasserteris the buyer addresscallbackRecipientis UMA adapter addressaddress(this)livenessmatches the escalation period in Boson protocolcurrencymatches the exchange'sexchangeTokenbondmatches DRFee (TBC)identifierTBDidentifier
- Post MVP: calling escalateDispute should automatically do the steps above.
- MVP: Buyer needs to manually call uma adapter to make an asserion in UMA.
- UMA adapter must implement OptimisticOracleV3CallbackRecipientInterface
- When
assertionResolvedCallbackis invoked, UMA adapter should call BosondecideDisputewithbuyerPercentdepending on the UMA DR resolution outcome.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels