-
Notifications
You must be signed in to change notification settings - Fork 0
/
XLV-v1.sol
31 lines (26 loc) · 1.01 KB
/
XLV-v1.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
/// @custom:security-contact support@lovetillion.org
contract Lovetillion is ERC20, ERC20Burnable, Ownable, ERC20Permit {
using Math for uint256;
constructor(address initialOwner)
ERC20("Lovetillion", "XLV")
Ownable(initialOwner)
ERC20Permit("Lovetillion")
{
_mint(msg.sender, 50 * 10 ** decimals());
}
// Ensures the same precision as Bitcoin Satoshis is utilized
function decimals() public view virtual override returns (uint8) {
return 8;
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}