Skip to content

Commit 3b9ee15

Browse files
committed
Add test token with infinite supply
1 parent 99cd68b commit 3b9ee15

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// SPDX-License-Identifier: MIT
2+
3+
pragma solidity ^0.8.0;
4+
5+
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
6+
7+
/**
8+
* @title InfiniteSupplyToken
9+
* @dev ERC20 Token with infinite supply, mintable by the contract owner.
10+
*/
11+
contract PimlicoTestInfiniteSupplyToken is ERC20 {
12+
/**
13+
* @dev Constructor that initializes the token with a name and a symbol.
14+
* @param name The name of the token.
15+
* @param symbol The symbol of the token.
16+
*/
17+
constructor(string memory name, string memory symbol) ERC20(name, symbol) {}
18+
19+
/**
20+
* @dev Mints new tokens to a specified address.
21+
* Can only be called by the contract owner.
22+
* @param to The address to receive the newly minted tokens.
23+
* @param amount The amount of tokens to mint.
24+
*/
25+
function mint(address to, uint256 amount) external {
26+
_mint(to, amount);
27+
}
28+
}

0 commit comments

Comments
 (0)