Last active
October 7, 2022 14:26
-
-
Save Slyracoon23/9e6f825e13593d8acb61d2d2bd0d891c to your computer and use it in GitHub Desktop.
TokenTimeLock Factory Contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/utils/TokenTimelock.sol"; | |
contract SimpleTokenLock { | |
// TokenLock List | |
TokenTimelock[] public list_of_timelocks; | |
// No Constructor | |
// Create Lock | |
function createLock(IERC20 token, address beneficiary, uint256 releaseTime) public { | |
TokenTimelock token_time_lock = new TokenTimelock(token, beneficiary, releaseTime); | |
list_of_timelocks.push(token_time_lock); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple TokenTimeLock factory that uses OpenZeppelin TokenTimelock solidity smart contract