format code
This commit is contained in:
parent
bcc049abff
commit
24ee9282e9
@ -8,9 +8,9 @@ import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
|
|||||||
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
|
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @title CECDistributor
|
* @title CECDistributor
|
||||||
* @dev CECDistributor is a contract for distributing CEC token with unlock time
|
* @dev CECDistributor is a contract for distributing CEC token with unlock time
|
||||||
* after all data is set, transfer owner to timelock contract
|
* after all data is set, transfer owner to timelock contract
|
||||||
*/
|
*/
|
||||||
contract CECDistributor is ReentrancyGuard, Pausable, Ownable {
|
contract CECDistributor is ReentrancyGuard, Pausable, Ownable {
|
||||||
using SafeERC20 for IERC20;
|
using SafeERC20 for IERC20;
|
||||||
@ -66,9 +66,7 @@ contract CECDistributor is ReentrancyGuard, Pausable, Ownable {
|
|||||||
cecToken.safeTransfer(to, amount);
|
cecToken.safeTransfer(to, amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
function claim(
|
function claim(address to) external nonReentrant whenNotPaused {
|
||||||
address to
|
|
||||||
) external nonReentrant whenNotPaused {
|
|
||||||
require(block.timestamp > unlockTime, "CECDistributor: not unlock time");
|
require(block.timestamp > unlockTime, "CECDistributor: not unlock time");
|
||||||
require(to != address(0), "CECDistributor: invalid address");
|
require(to != address(0), "CECDistributor: invalid address");
|
||||||
address _user = _msgSender();
|
address _user = _msgSender();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user