From 3361d56bafac55992d6efb1cab6e5847615f836d Mon Sep 17 00:00:00 2001 From: nerfZael Date: Mon, 4 Nov 2024 19:22:54 +0100 Subject: [PATCH] added comments to some methods --- src/AgentKey.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AgentKey.sol b/src/AgentKey.sol index a8af28c..ff19402 100644 --- a/src/AgentKey.sol +++ b/src/AgentKey.sol @@ -33,17 +33,19 @@ contract AgentKey is DecentralizedAutonomousTrust { ); } + /// @notice Stops the contract and transfers the reserve to the recipient. To be used in case of a migration to a new contract. function stopAndTransferReserve(address payable _recipient) external { require(msg.sender == beneficiary, "BENEFICIARY_ONLY"); isStopped = true; Address.sendValue(_recipient, address(this).balance); } + /// @dev Overrides the modifier in ContinuousOffering modifier authorizeTransfer( address _from, address _to, uint256 _value, - bool _isSell // Overrides the modifier in ContinuousOffering + bool _isSell ) { if (isStopped) { revert("Contract is stopped");