Skip to content

Commit

Permalink
added comments to some methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nerfZael committed Nov 4, 2024
1 parent 9e0ea82 commit 3361d56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AgentKey.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3361d56

Please sign in to comment.