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 3eec874 commit 60bb792Copy full SHA for 60bb792
contracts/standard/arbitration/Linguo.sol
@@ -536,8 +536,7 @@ contract Linguo is Arbitrable {
536
*/
537
function getDepositValue(uint _taskID) public view returns (uint deposit) {
538
Task storage task = tasks[_taskID];
539
- require(task.status == Status.Created, "The task can't be assigned.");
540
- if (now - task.lastInteraction > task.submissionTimeout){
+ if (now - task.lastInteraction > task.submissionTimeout || task.status != Status.Created) {
541
deposit = NOT_PAYABLE_VALUE;
542
} else {
543
uint price = task.minPrice + (task.maxPrice - task.minPrice) * (now - task.lastInteraction) / task.submissionTimeout;
0 commit comments