Verified contractExactMIT
HunterToken
Address0x8310d33adc4ec6429916282a8db0fa33924bb2a4
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.34
- Same code
2 more contracts
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 24,920,693
- Creation transaction
- 0xa5e5b1f08f…9bd0d65c8e
- Main copy (most transactions)
- 0x1e936c8d…0336667d
hunter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract HunterToken {
string public name = "Liquidity Hunter";
string public symbol = "HUNTER";
uint8 public decimals = 18;
uint256 public totalSupply = 1_000_000 * 10**18;
mapping(address => uint256) public balanceOf;
constructor() {
balanceOf[msg.sender] = totalSupply;
}
function transfer(address to, uint256 amount) external returns (bool) {
balanceOf[msg.sender] -= amount;
balanceOf[to] += amount;
return true;
}
function approve(address spender, uint256 amount) external returns (bool) { return true; }
function transferFrom(address from, address to, uint256 amount) external returns (bool) { return true; }
function allowance(address, address) external pure returns (uint256) { return type(uint256).max; }
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.