Skip to content

Commit

Permalink
Add test token with infinite supply
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Jan 13, 2025
1 parent 99cd68b commit 3b9ee15
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/PimlicoTestInfiniteSupplyToken.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// 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.
* Can only be called by the contract owner.
* @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);
}
}

0 comments on commit 3b9ee15

Please sign in to comment.