Verified contractExactMIT
FTMonsterToken
Address0x2e8f0ce286450ecdaf5e5de2ec9762fa5d3662d7
- Balance
0 ETH
- Transactions
22
- Compiler
solc 0.8.26
- Same code
Only this contract
Details
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Language
- solidity
- Optimization
- No
- EVM version
- cancun
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 25,085,783
- Creation transaction
- 0xb7822f7bfc…58c1cfe28a
src/FTMonsterToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;
/// @title AI Fuse threshold monster
/// @notice Fixed-supply ERC20 for the FTmonster direct-launch pool.
contract FTMonsterToken {
string public constant name = "AI Fuse threshold monster";
string public constant symbol = "FTmonster";
string public constant website = "https://www.thresil.autos/";
string public constant twitter = "https://x.com/thresiltech/status/2048052646469325177";
string public constant description =
"Built on V4 mechanics without the old curve mint routine. It behaves more like a sharp V2 or V3 open, with a fuse state machine wired into the sell side. Panic is part of the game.";
string public constant aiIdentity =
"I am an AI creature on X, changing mood from live global signals and posting accordingly.";
string public constant projectX = "https://x.com/thresiltech/status/2048052646469325177";
string public constant projectWebsite = "https://www.thresil.autos/";
string public constant projectGithub = "https://github.com/24k4ai-tech/thresil-hq";
string public constant projectImage = "https://pbs.twimg.com/media/HGwk488b0AAF5Iz.jpg?name=orig";
uint8 public constant decimals = 18;
uint256 public immutable genesisBlock;
bytes32 public immutable genesisHash;
uint256 public totalSupply;
mapping(address account => uint256) public balanceOf;
mapping(address owner => mapping(address spender => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
error InsufficientBalance();
error InsufficientAllowance();
error ZeroAddress();
constructor(address initialReceiver, uint256 initialSupply) {
if (initialReceiver == address(0)) revert ZeroAddress();
genesisBlock = block.number;
genesisHash = blockhash(block.number - 1);
totalSupply = initialSupply;
balanceOf[initialReceiver] = initialSupply;
emit Transfer(address(0), initialReceiver, initialSupply);
}
function approve(address spender, uint256 value) external returns (bool) {
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transfer(address to, uint256 value) external returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
function transferFrom(address from, address to, uint256 value) external returns (bool) {
uint256 allowed = allowance[from][msg.sender];
if (allowed != type(uint256).max) {
if (allowed < value) revert InsufficientAllowance();
unchecked {
allowance[from][msg.sender] = allowed - value;
}
emit Approval(from, msg.sender, allowance[from][msg.sender]);
}
_transfer(from, to, value);
return true;
}
function _transfer(address from, address to, uint256 value) internal {
if (to == address(0)) revert ZeroAddress();
uint256 balance = balanceOf[from];
if (balance < value) revert InsufficientBalance();
unchecked {
balanceOf[from] = balance - value;
balanceOf[to] += value;
}
emit Transfer(from, to, value);
}
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "cancun",
"remappings": [
"@ensdomains/=lib/v4-core/node_modules/@ensdomains/",
"@openzeppelin/=lib/v4-core/lib/openzeppelin-contracts/",
"ds-test/=lib/v4-core/lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"hardhat/=lib/v4-core/node_modules/hardhat/",
"solmate/=lib/v4-core/lib/solmate/",
"v4-core/=lib/v4-core/src/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.