julien/lovepublic Fork 0
dded29a03d3e4395f369c9e2c8fc829fba287322
Commits
Clone
git clone https://git.rickub.com/julien/love.git
git clone ssh://git@rickub.com/julien/love.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

make love an erc20 with public mint 4c8048e · on dded29a03d3e4395f369c9e2c8fc829fba287322 · julienbrg · 8h ago
Love.sol · 17 lines · 619 BSolidity Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

/// @title Love
/// @notice A basic ERC-20 with an unrestricted mint: anyone can mint any amount
///         to any address. Supply is therefore unbounded and meaningless — this
///         is a faucet/demo token, not a token with economic value.
contract Love is ERC20 {
    constructor() ERC20("Love", "LOVE") {}

    /// @notice Mint `amount` tokens to `to`. Callable by anyone, without limit.
    function mint(address to, uint256 amount) external {
        _mint(to, amount);
    }
}