Verified contractExactMIT
TestUSDT
Address0xee2e1c3204f731a4ac641b80494b37a2816b8e80
- Balance
0 ETH
- Transactions
2
- Compiler
solc 0.8.20
- Same code
Only this contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,439,420
- Creation transaction
- 0xa1f49a15ee…e96ead1e54
USDT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract TestUSDT {
string public name = "Tether USD";
string public symbol = "tUSDT";
uint8 public decimals = 6;
mapping(address => uint256) public balanceOf;
event Transfer(
address indexed from,
address indexed to,
uint256 value
);
function mint(uint256 amount) external {
uint256 value = amount * 10 ** decimals;
balanceOf[msg.sender] += value;
emit Transfer(address(0), msg.sender, value);
}
function transfer(
address to,
uint256 amount
) external returns (bool) {
require(to != address(0), "Invalid address");
require(balanceOf[msg.sender] >= amount, "Insufficient balance");
balanceOf[msg.sender] -= amount;
balanceOf[to] += amount;
emit Transfer(msg.sender, to, amount);
return true;
}
function burn(uint256 amount) external {
require(balanceOf[msg.sender] >= amount, "Insufficient balance");
balanceOf[msg.sender] -= amount;
emit Transfer(msg.sender, address(0), amount);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": [
"@openzeppelin/contracts/=@openzeppelin/[email protected]/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.