diff --git a/src/PimlicoTestInfiniteSupplyToken.sol b/src/PimlicoTestInfiniteSupplyToken.sol new file mode 100644 index 0000000..8c73512 --- /dev/null +++ b/src/PimlicoTestInfiniteSupplyToken.sol @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: MIT + +pragma solidity ^0.8.0; + +import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; + +/** + * @title InfiniteSupplyToken + * @dev ERC20 Token with infinite supply, mintable by the contract owner. + */ +contract PimlicoTestInfiniteSupplyToken is ERC20 { + /** + * @dev Constructor that initializes the token with a name and a symbol. + * @param name The name of the token. + * @param symbol The symbol of the token. + */ + constructor(string memory name, string memory symbol) ERC20(name, symbol) {} + + /** + * @dev Mints new tokens to a specified address. + * @param to The address to receive the newly minted tokens. + * @param amount The amount of tokens to mint. + */ + function mint(address to, uint256 amount) external { + _mint(to, amount); + } +}