-
Notifications
You must be signed in to change notification settings - Fork 24
Completing a Bounty
Before you start to work on comleting the bounty you choose. You need to Claim to work on a bounty. Bounties can have a set amount of times it is able to be completed. To successfully claim the bounty it needs to have an open spot.
After you claim the bounty the deadline countdown starts. It is set during the bounty creation and is personal to each claim. And you can get to work on the task.
CLI example:
near call near-cli-example.sputnikv2.testnet bounty_claim '{"id":0,"deadline":"259200000000000"}' --account-id test-account.testnet --gas 100000000000000
After you finished the task and want to collect the rewards! You need to submit a Complete Bounty proposal.
Depending on the outcome of that proposal the claim can be Approved or Rejected.
Once the claim has been approved by a successful vote on Complete Bounty proposal. Bounty is closes one of the open spots in the times field.
If the claim was rejected. Bounty re-opens one of times field for claiming.
You can also forfeit a bounty claim.
CLI example:
near call near-cli-example.sputnikv2.testnet bounty_giveup '{"id":0}' --account-id test-account.testnet --gas 100000000000000