- 174 views
Deploy the contract using Remix
Do not forget to add Ethereum Testnet to your Metamask / Wallet of your choice, or Polygon Mumbai, or BSC testnet etc.
USDC has 6 decimals! This is also why I needed to override decimals function to suit my needs.
Code is as follows:
// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract USDC is ERC20 {
constructor() ERC20("USDC", "USDC") {}
function mintTokens(uint _numberOfTokens) external {
_mint(msg.sender, _numberOfTokens * (10 ** 6));
}
function decimals() public view virtual override returns (uint8) {
return 6;
}
}
Other tokens to suit your tests
While googling how to do this I came across this thread, where someone actually deployed some wETH, DAI and some other clones on multiple testnets. It might suit your needs as well.