Skip to content

Commit

Permalink
Remove minTreeUpdateFeeIsSet modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
AllFi committed Feb 1, 2024
1 parent 6d16f95 commit 1182878
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/zkbob/ZkBobPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,6 @@ abstract contract ZkBobPool is IZkBobPool, EIP1967Admin, Ownable, Parameters, Ex
_;
}

/**
* @dev Throws if minimal tree update fee is not set.
*/
modifier minTreeUpdateFeeIsSet() {
require(minTreeUpdateFee > 0, "ZkBobPool: minimal tree update fee is not set");
_;
}

/**
* @dev Initializes pool proxy storage.
* Callable only once and only through EIP1967Proxy constructor / upgradeToAndCall.
Expand Down Expand Up @@ -278,7 +270,7 @@ abstract contract ZkBobPool is IZkBobPool, EIP1967Admin, Ownable, Parameters, Ex
* Method uses a custom ABI encoding scheme described in CustomABIDecoder.
* Single transact() call performs either deposit, withdrawal or shielded transfer operation.
*/
function transactV2() external onlyOperator minTreeUpdateFeeIsSet {
function transactV2() external onlyOperator {
require(_version() == 2, "ZkBobPool: incorrect calldata version");

address user = msg.sender;
Expand Down Expand Up @@ -392,7 +384,6 @@ abstract contract ZkBobPool is IZkBobPool, EIP1967Admin, Ownable, Parameters, Ex
)
external
onlyOperator
minTreeUpdateFeeIsSet
{
(uint256 total, uint256 totalFee, uint256 hashsum, bytes memory message) =
direct_deposit_queue.collect(_indices, _out_commit);
Expand Down

0 comments on commit 1182878

Please sign in to comment.