You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/standard/arbitration/LinguoToken.sol
+30-16Lines changed: 30 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ contract LinguoToken is Arbitrable {
55
55
uint lastInteraction; // The time of the last action performed on the task. Note that lastInteraction is updated only during timeout-related actions such as the creation of the task and the submission of the translation.
56
56
address requester; // The party requesting the translation.
57
57
uint requesterDeposit; // The deposit requester makes when creating the task. Once a task is assigned this deposit will be partially reimbursed and its value will be replaced by task price.
58
-
uinttranslatorDeposit; // The deposit of the translator, if any. This value will be paid/reimbursed to the party that wins the dispute.
58
+
uintsumDeposit; // The sum of the deposits of translator and challenger, if any. This value (minus arbitration fees) will be paid to the party that wins the dispute.
59
59
address[3] parties; // Translator and challenger of the task.
60
60
uint disputeID; // The ID of the dispute created in arbitrator contract.
61
61
Round[] rounds; // Tracks each appeal round of a dispute.
@@ -271,7 +271,7 @@ contract LinguoToken is Arbitrable {
271
271
272
272
// Update requester's deposit since we reimbursed him the difference between maximal and actual price.
273
273
task.requesterDeposit = price;
274
-
task.translatorDeposit= translatorDeposit;
274
+
task.sumDeposit= translatorDeposit;
275
275
276
276
uint remainder =msg.value- translatorDeposit;
277
277
msg.sender.send(remainder);
@@ -305,11 +305,11 @@ contract LinguoToken is Arbitrable {
305
305
require(now- task.lastInteraction > task.submissionTimeout, "Can't reimburse if the deadline hasn't passed yet.");
306
306
task.status = Status.Resolved;
307
307
uint requesterDeposit = task.requesterDeposit;
308
-
uinttranslatorDeposit= task.translatorDeposit;
308
+
uintsumDeposit= task.sumDeposit;
309
309
task.requesterDeposit =0;
310
-
task.translatorDeposit=0;
310
+
task.sumDeposit=0;
311
311
// Requester gets his deposit back and also the deposit of the translator, if there was one.
312
-
task.requester.send(translatorDeposit);
312
+
task.requester.send(sumDeposit);
313
313
require(task.token.transfer(task.requester, requesterDeposit), "The token transfer was unsuccessful.");
0 commit comments