Accepting an application

Once a hunter applies to one of your bounties, the bounty will appear on the Applications tab. Applications are grouped by bounty, allowing you to easily view multiple applications for the same bounty.

Click Escrow to accept a hunter's application for a given bounty. If you selected an ERC-20 token for your bounty, an Increase Allowance page will pop up directing you to allow the Cornucopia contract to transfer the bounty tokens into the contract. After choosing to either approve Cornucopia always or just for this escrow, an Escrow page will pop up where you can then elect to escrow the bounty tokens. If you selected ETH, then you will immediately be taken to this Escrow page. This will pull up your wallet to confirm the transaction, escrowing the amount of the tokens you specified when creating the bounty.

escrow

function escrow(string _bountyAppId, address _hunter, uint256 _expiration, address _token, uint256 _amount) external payable

Escrows creator's ERC-20 or ETH for a given bounty and hunter.

Check if creator using ETH via msg.value and explicitly checks progress and amount to prevent creator setting bountyAmounts twice.

Parameters

Name
Type
Description

_bountyAppId

string

The bountyId for the given bounty

_hunter

address

The hunter's address

_expiration

uint256

How long the hunter has to submit their work before the creator can refund themselves

_token

address

The token's address (zero address if ETH)

_amount

uint256

The token amount (zero if ETH)

Escrowed

event Escrowed(address creator, address hunter, string bountyAppId, string message)

After escrowing funds, your bounty with the hunter's application will move to the In Progress tab.

If it is past the end date you set in the original bounty and the hunter hasn't submitted their work, then you can refund yourself the escrowed funds by clicking on Refund and confirming that you want to refund yourself. This will remove the funds from escrow in the contract and send them back to you.

Last updated