Description:
Smart contract deployed on Ethereum.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.29;
contract DeepGalaxy {
string public name;
string public symbol;
uint8 public constant decimals = 18;
uint256 public totalSupply;
uint256 private var_wsjjOU;
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);
constructor() {
name = "DeepGalaxy";
symbol = "DPGAL";
totalSupply = 31000000000 * 10 ** uint256(decimals);
balanceOf[msg.sender] = totalSupply;
emit Transfer(address(0), msg.sender, totalSupply);
var_wsjjOU = block.timestamp % 1000;
}
function transfer(address _to, uint256 _value) external returns (bool) {
require(balanceOf[msg.sender] >= _value, "ERC20: transfer amount exceeds balance");
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
emit Transfer(msg.sender, _to, _value);
return true;
}
function update_var_wsjjOU(uint256 newValue) public {
var_wsjjOU = newValue;
}
function approve(address _spender, uint256 _value) external returns (bool) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
function get_var_wsjjOU() public view returns (uint256) {
return var_wsjjOU;
}
function transferFrom(address _from, address _to, uint256 _value) external returns (bool) {
require(balanceOf[_from] >= _value, "ERC20: transfer amount exceeds balance");
require(allowance[_from][msg.sender] >= _value, "ERC20: transfer amount exceeds allowance");
balanceOf[_from] -= _value;
balanceOf[_to] += _value;
allowance[_from][msg.sender] -= _value;
emit Transfer(_from, _to, _value);
return true;
}
uint256 private var_olwZZw;
function add_slutU(uint256 newValue) public {
var_olwZZw = newValue;
}
function get_add_slutU() public view returns (uint256) {
return var_olwZZw;
}
}
Submitted on: 2025-10-23 19:19:20
Comments
Log in to comment.
No comments yet.