From 24ee9282e931a8600c1d7b03215711f37608017d Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:52:28 +0800 Subject: [PATCH] format code --- contracts/activity/CECDistributor.sol | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/contracts/activity/CECDistributor.sol b/contracts/activity/CECDistributor.sol index b0207e1..d8495f5 100644 --- a/contracts/activity/CECDistributor.sol +++ b/contracts/activity/CECDistributor.sol @@ -8,9 +8,9 @@ import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; /** - * @title CECDistributor - * @dev CECDistributor is a contract for distributing CEC token with unlock time - * after all data is set, transfer owner to timelock contract + * @title CECDistributor + * @dev CECDistributor is a contract for distributing CEC token with unlock time + * after all data is set, transfer owner to timelock contract */ contract CECDistributor is ReentrancyGuard, Pausable, Ownable { using SafeERC20 for IERC20; @@ -66,9 +66,7 @@ contract CECDistributor is ReentrancyGuard, Pausable, Ownable { cecToken.safeTransfer(to, amount); } - function claim( - address to - ) external nonReentrant whenNotPaused { + function claim(address to) external nonReentrant whenNotPaused { require(block.timestamp > unlockTime, "CECDistributor: not unlock time"); require(to != address(0), "CECDistributor: invalid address"); address _user = _msgSender();