Skip to content

Commit 0e27cc7

Browse files
Merge pull request #307 from unknownunknown1/master
fix(Linguo): remove require in getDeposit
2 parents 3eec874 + 60bb792 commit 0e27cc7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contracts/standard/arbitration/Linguo.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ contract Linguo is Arbitrable {
536536
*/
537537
function getDepositValue(uint _taskID) public view returns (uint deposit) {
538538
Task storage task = tasks[_taskID];
539-
require(task.status == Status.Created, "The task can't be assigned.");
540-
if (now - task.lastInteraction > task.submissionTimeout){
539+
if (now - task.lastInteraction > task.submissionTimeout || task.status != Status.Created) {
541540
deposit = NOT_PAYABLE_VALUE;
542541
} else {
543542
uint price = task.minPrice + (task.maxPrice - task.minPrice) * (now - task.lastInteraction) / task.submissionTimeout;

0 commit comments

Comments
 (0)