feat: add valueless mock USDC

This commit is contained in:
golem
2026-08-17 16:22:30 -06:00
parent a6f9533aac
commit 1f4175ba72
2 changed files with 78 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.35;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
/// @notice Educational mock token with no monetary value. Never use as real USDC.
contract MockUSDC is ERC20, Ownable {
constructor(address initialOwner) ERC20("Mock USD Coin", "mUSDC") Ownable(initialOwner) {}
function decimals() public pure override returns (uint8) {
return 6;
}
function mint(address to, uint256 amount) external onlyOwner {
_mint(to, amount);
}
}