mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-10-01 01:06:17 -04:00
allow fee equal to denomination
This commit is contained in:
parent
bc134bbfe8
commit
bec65f217f
@ -90,7 +90,7 @@ contract Mixer is MerkleTreeWithHistory {
|
|||||||
address payable relayer = address(input[3]);
|
address payable relayer = address(input[3]);
|
||||||
uint256 fee = input[4];
|
uint256 fee = input[4];
|
||||||
uint256 refund = input[5];
|
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(!nullifierHashes[nullifierHash], "The note has been already spent");
|
||||||
|
|
||||||
require(isKnownRoot(root), "Cannot find your merkle root"); // Make sure to use a recent one
|
require(isKnownRoot(root), "Cannot find your merkle root"); // Make sure to use a recent one
|
||||||
|
Loading…
Reference in New Issue
Block a user