-
-
Save barchef/93ace6e060343fadb8ded01e9f2bf3a5 to your computer and use it in GitHub Desktop.
startonpulse.sol
This file contains 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.13; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract StartOnPulse is ERC20, Ownable { | |
constructor() public ERC20("StartOnPulse", "START") { | |
_mint(msg.sender, 100000000 * (10 ** uint256(decimals()))); | |
} | |
function recoverERC20(address tokenAddress) public virtual onlyOwner { | |
IERC20(tokenAddress).transfer(owner(), IERC20(tokenAddress).balanceOf(address(this))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment