Disputing Work
After the hunter submits their work, your bounty with their submitted work will appear under the Submitted: Needs Approval tab. Expanding the bounty will show you the hunter's original application and links to their work. You can choose to either Contest the work or Pay the hunter the escrowed funds. Make sure you take either action within 2 weeks of receiving the work as the hunter can force a payout after that time.
Click Contest to contest the hunter's work. A Dispute page will pop-up where you select the token and amount you want to put up for the UMA bond. You can use WETH, DAI, or USDC as the bond token and any amount. Regardless of the amount, UMA charges a 0.35 WETH, 500 DAI, or 500 USDC fee to initiate a dispute. If you win the dispute, this bond fee will be refunded. Clicking on Contest will then bring up an Approve page pop-up directing you to allow the Cornucopia contract to transfer the bond tokens into the contract. These tokens will then be sent to the UMA Optimistic Oracle contract. After choosing to either approve Cornucopia always or just for this dispute, a Dispute page will pop up where you can then elect to contest the hunter's work.
initiateDispute
function initiateDispute(string _bountyAppId, address _hunter, uint256 _bondAmt, string _ancillaryData, contract IERC20 _currency) external returns (uint256)Creator initiates dispute for a given bounty and hunter
Currency can only be WETH, DAI, or USDC Creator is the proposer but Cornucopia contract is the requester
Parameters
_bountyAppId
string
The bountyId for the given bounty
_hunter
address
The hunter's address
_bondAmt
uint256
The UMA bond the creator posts to initiate the dispute
_ancillaryData
string
The dispute data UMA holders use to judge the dispute
_currency
contract IERC20
The currency the creator wants to use for the bond
Return Values
creatorBondAmt
uint256
The creator's bond plus UMA's finalFee
Disputed
After initiating the dispute, the bounty and the hunter's work will move to the Dispute Initiated tab.
The hunter then has 1 week to respond to the dispute. If they respond then the bounty and the hunter's work will move to the Dispute Responded To tab. Otherwise, you win the dispute by default and call TODO: what is this on frontend
Last updated