Skip to content

Commit

Permalink
fix(t2cr): missing/wrong time data
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricexit committed Nov 24, 2018
1 parent c00dd70 commit 1c14e81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/standard/permission/ArbitrableTokenList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ contract ArbitrableTokenList is PermissionInterface, Arbitrable {
);
Request storage request = token.requests[token.requests.length - 1];
require(!request.disputed, "The token is already disputed");
require(token.lastAction + request.timeToChallenge < now, "The time to challenge has already passed.");
require(token.lastAction + request.timeToChallenge > now, "The time to challenge has already passed.");
require(request.challengeRewardBalance >= request.challengeReward, "There isn't a pending request for this token.");

Round storage round = request.rounds[request.rounds.length - 1];
Expand All @@ -249,6 +249,7 @@ contract ArbitrableTokenList is PermissionInterface, Arbitrable {
emit ChallengeDepositPlaced(_tokenID, msg.sender);

token.lastAction = now;
request.firstContributionTime = now;
}

// Calculate the amount of fees required.
Expand Down

0 comments on commit 1c14e81

Please sign in to comment.