Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test token with infinite supply #12

Merged
merged 2 commits into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/PimlicoTestInfiniteSupplyToken.sol
Original file line number Diff line number Diff line change
@@ -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);
}
}
Loading