diff --git a/src/PostageStamp.sol b/src/PostageStamp.sol index e7dcfe59..04e39b95 100644 --- a/src/PostageStamp.sol +++ b/src/PostageStamp.sol @@ -143,43 +143,6 @@ contract PostageStamp is AccessControl, Pausable { error OnlyPauser(); // Only Pauser role can pause or unpause contracts error OnlyRedistributor(); // Only redistributor role can withdraw from the contract - - - // ----------------------------- Events ------------------------------ - - /** - * @dev Emitted when a new batch is created. - */ - event BatchCreated( - bytes32 indexed batchId, - uint256 totalAmount, - uint256 normalisedBalance, - address owner, - uint8 depth, - uint8 bucketDepth, - bool immutableFlag - ); - - /** - * @dev Emitted when an pot is Withdrawn. - */ - event PotWithdrawn(address recipient, uint256 totalAmount); - - /** - * @dev Emitted when an existing batch is topped up. - */ - event BatchTopUp(bytes32 indexed batchId, uint256 topupAmount, uint256 normalisedBalance); - - /** - * @dev Emitted when the depth of an existing batch increases. - */ - event BatchDepthIncrease(bytes32 indexed batchId, uint8 newDepth, uint256 normalisedBalance); - - /** - *@dev Emitted on every price update. - */ - event PriceUpdate(uint256 price); - // ----------------------------- CONSTRUCTOR ------------------------------ /** @@ -301,7 +264,6 @@ contract PostageStamp is AccessControl, Pausable { revert ZeroBalance(); } - validChunkCount += 1 << _depth; batches[_batchId] = Batch({ @@ -429,7 +391,6 @@ contract PostageStamp is AccessControl, Pausable { } minimumValidityBlocks = uint64(_value); - } /** @@ -527,7 +488,6 @@ contract PostageStamp is AccessControl, Pausable { * The contract can be provably stopped by renouncing the pauser role and the admin role once paused. */ function pause() public { - if (!hasRole(PAUSER_ROLE, msg.sender)) { revert OnlyPauser(); }