BountyOneBounties / SmartContract

0 stars 1 forks source link

Change Smart Contract so that the poster of a bounty is the one that must reward the user rather than the contract owner #2

Open bountyone opened 6 years ago

bountyone commented 6 years ago

Currently, the smart contract only allows the owner of the contract to reward a bounty. We are offering this bounty to the first developer that reworks the contract so that the creator of each bounty can reward a particular user.

Requirments:

  1. The address that posts the bounty is the one that can reward the user.
  2. The owner of the contract can also reward users if the bounty poster does not do so in a timely manner.

Please submit a pull request and include your email and ETH address that you have used on BountyOne.io

hnamzian commented 6 years ago

Should the new conditions be applied for both rewardUsers and rewardUser functions the same way?

hnamzian commented 6 years ago

I have 2 other questions too:

1- why the requirements for rewardUsers and rewardUser are different? and what should we do for now when there are different conditions?

2- is a deadline time variable for rewarding by poster should be added or bountyDuration is enough?

thebkr7 commented 6 years ago

Sorry for the delay @hnamzian

  1. Because they are used for different tasks. What do you mean for different tasks? Can you provide an example?
  2. bountyDuration is enough, no time variable needed.