Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
},
"sources": {
"GuauMagnii.sol": {
"content": "// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;
contract gsm {
string public constant name = unicode"????G????";
string public constant symbol = unicode"????UAU????";
uint8 public constant decimals = 18;
uint256 public totalSupply;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
address public owner;
bool public tradingOpen = false;
uint256 public constant MAX_SUPPLY = 1_000_000_000 * 1e18;
uint256 public constant LP_AMOUNT = 800_000_000 * 1e18; // 80%
uint256 public constant TEAM_AMOUNT = 200_000_000 * 1e18; // 20%
constructor() {
owner = msg.sender;
_mint(msg.sender, TEAM_AMOUNT);
}
function transfer(address to, uint256 amount) external returns (bool) {
_transfer(msg.sender, to, amount);
return true;
}
function transferFrom(address from, address to, uint256 amount) external returns (bool) {
uint256 allowed = allowance[from][msg.sender];
if (allowed != type(uint256).max) {
allowance[from][msg.sender] = allowed - amount;
}
_transfer(from, to, amount);
return true;
}
function approve(address spender, uint256 amount) external returns (bool) {
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function _transfer(address from, address to, uint256 amount) internal {
require(tradingOpen || from == owner, "Trading not open");
uint256 fromBalance = balanceOf[from];
require(fromBalance >= amount, "Insufficient balance");
balanceOf[from] = fromBalance - amount;
balanceOf[to] += amount;
emit Transfer(from, to, amount);
}
function _mint(address to, uint256 amount) internal {
totalSupply += amount;
balanceOf[to] += amount;
emit Transfer(address(0), to, amount);
}
/// @notice Open trading — bots wait for this
function openTrading() external {
require(msg.sender == owner, "Not owner");
require(!tradingOpen, "Already open");
tradingOpen = true;
}
/// @notice Renounce ownership — GREEN on rugcheck
function renounceOwnership() external {
require(msg.sender == owner, "Not owner");
owner = address(0);
}
}"
}
}
}}
Submitted on: 2025-11-01 16:41:05
Comments
Log in to comment.
No comments yet.