Skip to content

Commit

Permalink
fix(t2cr): time to challenge must have passed
Browse files Browse the repository at this point in the history
  • Loading branch information
eccentricexit committed Nov 23, 2018
1 parent 8954066 commit c00dd70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/standard/permission/ArbitrableTokenList.sol
Original file line number Diff line number Diff line change
Expand Up @@ -509,14 +509,13 @@ contract ArbitrableTokenList is PermissionInterface, Arbitrable {
Token storage token = tokens[_tokenID];
require(token.lastAction > 0, "The specified token was never submitted.");
Request storage request = token.requests[token.requests.length - 1];
require(token.lastAction + timeToChallenge > now, "The time to challenge has not passed yet.");
require(now > token.lastAction + timeToChallenge, "The time to challenge has not passed yet.");
require(!request.disputed, "The specified token is disputed.");
require(
request.challengeRewardBalance == request.challengeReward,
"Only callable if no one contests the request."
);


if (token.status == TokenStatus.RegistrationRequested)
token.status = TokenStatus.Registered;
else if (token.status == TokenStatus.ClearingRequested)
Expand Down

0 comments on commit c00dd70

Please sign in to comment.