Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Cache order maker signature (ZEIP-15)
Browse files Browse the repository at this point in the history
  • Loading branch information
recmo committed Feb 14, 2018
1 parent 7e691ff commit f1710f4
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,16 @@ contract MixinExchangeCore is
orderHash: getOrderHash(orderAddresses, orderValues)
});

// Validate maker
require(order.makerTokenAmount > 0);
require(order.takerTokenAmount > 0);
require(isValidSignature(
order.orderHash,
order.maker,
signature
));
// Validate order and maker only if first time seen
if (filled[order.orderHash] == 0 && cancelled[order.orderHash] == 0) {
require(order.makerTokenAmount > 0);
require(order.takerTokenAmount > 0);
require(isValidSignature(
order.orderHash,
order.maker,
signature
));
}

// Validate taker
if (order.taker != address(0)) {
Expand Down

0 comments on commit f1710f4

Please sign in to comment.