Skip to content

Instantly share code, notes, and snippets.

@barchef
Created August 6, 2023 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barchef/93ace6e060343fadb8ded01e9f2bf3a5 to your computer and use it in GitHub Desktop.
Save barchef/93ace6e060343fadb8ded01e9f2bf3a5 to your computer and use it in GitHub Desktop.
startonpulse.sol
// 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