OsiPad/evm/contracts/PADToken.sol

23 lines
608 B
Solidity

// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract PADToken is ERC20, Ownable {
constructor(address initialOwner)
ERC20("PAD Token", "PAD")
Ownable(initialOwner)
{}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
function approveMax(address spender) public returns (bool) {
uint value = type(uint256).max;
return approve(spender, value);
}
}