We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab0578 commit 3eec874Copy full SHA for 3eec874
contracts/standard/arbitration/Linguo.sol
@@ -552,8 +552,7 @@ contract Linguo is Arbitrable {
552
*/
553
function getTaskPrice(uint _taskID) public view returns (uint price) {
554
Task storage task = tasks[_taskID];
555
- require(task.status == Status.Created, "The task can't be assigned.");
556
- if (now - task.lastInteraction > task.submissionTimeout){
+ if (now - task.lastInteraction > task.submissionTimeout || task.status != Status.Created) {
557
price = 0;
558
} else {
559
price = task.minPrice + (task.maxPrice - task.minPrice) * (now - task.lastInteraction) / task.submissionTimeout;
0 commit comments