From bec65f217fcfc1863e2989b55cfd98690dcf11ae Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 1 Nov 2019 03:54:29 +0300 Subject: [PATCH] allow fee equal to denomination --- contracts/Mixer.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Mixer.sol b/contracts/Mixer.sol index 4a5b9ef..caffbcb 100644 --- a/contracts/Mixer.sol +++ b/contracts/Mixer.sol @@ -90,7 +90,7 @@ contract Mixer is MerkleTreeWithHistory { address payable relayer = address(input[3]); uint256 fee = input[4]; uint256 refund = input[5]; - require(fee < denomination, "Fee exceeds transfer value"); + require(fee <= denomination, "Fee exceeds transfer value"); require(!nullifierHashes[nullifierHash], "The note has been already spent"); require(isKnownRoot(root), "Cannot find your merkle root"); // Make sure to use a recent one