ETH Price: $3,289.46 (-0.68%)

Contract

0x7f78A3F9a0f7447573Ab49cE39698Dd2e89a66d6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve212694672024-11-26 4:14:2354 days ago1732594463IN
0x7f78A3F9...2e89a66d6
0 ETH0.000348557.54998738
Approve212694422024-11-26 4:09:2354 days ago1732594163IN
0x7f78A3F9...2e89a66d6
0 ETH0.0005063310.89696109
Approve212694052024-11-26 4:01:5954 days ago1732593719IN
0x7f78A3F9...2e89a66d6
0 ETH0.000333857.22594221

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x4E7E061A...3c1A52937
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Token

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2024-11-26
*/

pragma solidity ^0.8.2;

contract Token {
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowance;
    uint public totalSupply = 1500000000000 * 10 ** 18;
    string public name = "Moongate";
    string public symbol = "MGT";
    uint public decimals = 18;
    
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
    
    constructor() {
        balances[msg.sender] = totalSupply;
    }
    
    function balanceOf(address owner) public returns(uint) {
        return balances[owner];
    }
    
    function transfer(address to, uint value) public returns(bool) {
        require(balanceOf(msg.sender) >= value, 'balance too low');
        balances[to] += value;
        balances[msg.sender] -= value;
       emit Transfer(msg.sender, to, value);
        return true;
    }
    
    function transferFrom(address from, address to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] += value;
        balances[from] -= value;
        emit Transfer(from, to, value);
        return true;   
    }
    
    function approve(address spender, uint value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;   
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c8063313ce56711610066578063313ce5671461012e57806370a082311461013757806395d89b411461014a578063a9059cbb14610152578063dd62ed3e146101655761009e565b806306fdde03146100a3578063095ea7b3146100c157806318160ddd146100e457806323b872dd146100fb57806327e235e31461010e575b600080fd5b6100ab610190565b6040516100b891906105c9565b60405180910390f35b6100d46100cf3660046105a0565b61021e565b60405190151581526020016100b8565b6100ed60025481565b6040519081526020016100b8565b6100d4610109366004610565565b61028a565b6100ed61011c366004610512565b60006020819052908152604090205481565b6100ed60055481565b6100ed610145366004610512565b6103f5565b6100ab610414565b6100d46101603660046105a0565b610421565b6100ed610173366004610533565b600160209081526000928352604080842090915290825290205481565b6003805461019d9061064b565b80601f01602080910402602001604051908101604052809291908181526020018280546101c99061064b565b80156102165780601f106101eb57610100808354040283529160200191610216565b820191906000526020600020905b8154815290600101906020018083116101f957829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102799086815260200190565b60405180910390a350600192915050565b600081610296856103f5565b10156102db5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064015b60405180910390fd5b6001600160a01b03841660009081526001602090815260408083203384529091529020548211156103425760405162461bcd60e51b8152602060048201526011602482015270616c6c6f77616e636520746f6f206c6f7760781b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061036a90849061061c565b90915550506001600160a01b03841660009081526020819052604081208054849290610397908490610634565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516103e391815260200190565b60405180910390a35060019392505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6004805461019d9061064b565b60008161042d336103f5565b101561046d5760405162461bcd60e51b815260206004820152600f60248201526e62616c616e636520746f6f206c6f7760881b60448201526064016102d2565b6001600160a01b0383166000908152602081905260408120805484929061049590849061061c565b909155505033600090815260208190526040812080548492906104b9908490610634565b90915550506040518281526001600160a01b0384169033907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610279565b80356001600160a01b038116811461040f57600080fd5b600060208284031215610523578081fd5b61052c826104fb565b9392505050565b60008060408385031215610545578081fd5b61054e836104fb565b915061055c602084016104fb565b90509250929050565b600080600060608486031215610579578081fd5b610582846104fb565b9250610590602085016104fb565b9150604084013590509250925092565b600080604083850312156105b2578182fd5b6105bb836104fb565b946020939093013593505050565b6000602080835283518082850152825b818110156105f5578581018301518582016040015282016105d9565b818111156106065783604083870101525b50601f01601f1916929092016040019392505050565b6000821982111561062f5761062f610686565b500190565b60008282101561064657610646610686565b500390565b60028104600182168061065f57607f821691505b6020821081141561068057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea26469706673582212208392cd46fdbb37c8e74b993c30d74c3fee9cc5cf769eea98a5ee426a28593eed64736f6c63430008020033

Deployed Bytecode Sourcemap

27:1524:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;221:31;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1346:202;;;;;;:::i;:::-;;:::i;:::-;;;1445:14:1;;1438:22;1420:41;;1408:2;1393:18;1346:202:0;1375:92:1;164:50:0;;;;;;;;;2916:25:1;;;2904:2;2889:18;164:50:0;2871:76:1;973:361:0;;;;;;:::i;:::-;;:::i;49:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;294:25;;;;;;573:96;;;;;;:::i;:::-;;:::i;259:28::-;;;:::i;681:280::-;;;;;;:::i;:::-;;:::i;96:61::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;221:31;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1346:202::-;1435:10;1408:4;1425:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;1425:30:0;;;;;;;;;;:38;;;1479:36;1408:4;;1425:30;;1479:36;;;;1458:5;2916:25:1;;2904:2;2889:18;;2871:76;1479:36:0;;;;;;;;-1:-1:-1;1533:4:0;1346:202;;;;:::o;973:361::-;1048:4;1092:5;1073:15;1083:4;1073:9;:15::i;:::-;:24;;1065:52;;;;-1:-1:-1;;;1065:52:0;;2282:2:1;1065:52:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;1065:52:0;;;;;;;;;-1:-1:-1;;;;;1136:15:0;;;;;;:9;:15;;;;;;;;1152:10;1136:27;;;;;;;;:36;-1:-1:-1;1136:36:0;1128:66;;;;-1:-1:-1;;;1128:66:0;;2626:2:1;1128:66:0;;;2608:21:1;2665:2;2645:18;;;2638:30;-1:-1:-1;;;2684:18:1;;;2677:47;2741:18;;1128:66:0;2598:167:1;1128:66:0;-1:-1:-1;;;;;1205:12:0;;:8;:12;;;;;;;;;;:21;;1221:5;;1205:8;:21;;1221:5;;1205:21;:::i;:::-;;;;-1:-1:-1;;;;;;;1237:14:0;;:8;:14;;;;;;;;;;:23;;1255:5;;1237:8;:23;;1255:5;;1237:23;:::i;:::-;;;;;;;;1291:2;-1:-1:-1;;;;;1276:25:0;1285:4;-1:-1:-1;;;;;1276:25:0;;1295:5;1276:25;;;;2916::1;;2904:2;2889:18;;2871:76;1276:25:0;;;;;;;;-1:-1:-1;1319:4:0;973:361;;;;;:::o;573:96::-;-1:-1:-1;;;;;646:15:0;;622:4;646:15;;;;;;;;;;;573:96;;;;:::o;259:28::-;;;;;;;:::i;681:280::-;738:4;788:5;763:21;773:10;763:9;:21::i;:::-;:30;;755:58;;;;-1:-1:-1;;;755:58:0;;2282:2:1;755:58:0;;;2264:21:1;2321:2;2301:18;;;2294:30;-1:-1:-1;;;2340:18:1;;;2333:45;2395:18;;755:58:0;2254:165:1;755:58:0;-1:-1:-1;;;;;824:12:0;;:8;:12;;;;;;;;;;:21;;840:5;;824:8;:21;;840:5;;824:21;:::i;:::-;;;;-1:-1:-1;;865:10:0;856:8;:20;;;;;;;;;;:29;;880:5;;856:8;:29;;880:5;;856:29;:::i;:::-;;;;-1:-1:-1;;900:31:0;;2916:25:1;;;-1:-1:-1;;;;;900:31:0;;;909:10;;900:31;;2904:2:1;2889:18;900:31:0;2871:76:1;14:173;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;192:196;;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:270::-;;;522:2;510:9;501:7;497:23;493:32;490:2;;;543:6;535;528:22;490:2;571:29;590:9;571:29;:::i;:::-;561:39;;619:38;653:2;642:9;638:18;619:38;:::i;:::-;609:48;;480:183;;;;;:::o;668:338::-;;;;814:2;802:9;793:7;789:23;785:32;782:2;;;835:6;827;820:22;782:2;863:29;882:9;863:29;:::i;:::-;853:39;;911:38;945:2;934:9;930:18;911:38;:::i;:::-;901:48;;996:2;985:9;981:18;968:32;958:42;;772:234;;;;;:::o;1011:264::-;;;1140:2;1128:9;1119:7;1115:23;1111:32;1108:2;;;1161:6;1153;1146:22;1108:2;1189:29;1208:9;1189:29;:::i;:::-;1179:39;1265:2;1250:18;;;;1237:32;;-1:-1:-1;;;1098:177:1:o;1472:603::-;;1613:2;1642;1631:9;1624:21;1674:6;1668:13;1717:6;1712:2;1701:9;1697:18;1690:34;1742:4;1755:140;1769:6;1766:1;1763:13;1755:140;;;1864:14;;;1860:23;;1854:30;1830:17;;;1849:2;1826:26;1819:66;1784:10;;1755:140;;;1913:6;1910:1;1907:13;1904:2;;;1983:4;1978:2;1969:6;1958:9;1954:22;1950:31;1943:45;1904:2;-1:-1:-1;2059:2:1;2038:15;-1:-1:-1;;2034:29:1;2019:45;;;;2066:2;2015:54;;1593:482;-1:-1:-1;;;1593:482:1:o;2952:128::-;;3023:1;3019:6;3016:1;3013:13;3010:2;;;3029:18;;:::i;:::-;-1:-1:-1;3065:9:1;;3000:80::o;3085:125::-;;3153:1;3150;3147:8;3144:2;;;3158:18;;:::i;:::-;-1:-1:-1;3195:9:1;;3134:76::o;3215:380::-;3300:1;3290:12;;3347:1;3337:12;;;3358:2;;3412:4;3404:6;3400:17;3390:27;;3358:2;3465;3457:6;3454:14;3434:18;3431:38;3428:2;;;3511:10;3506:3;3502:20;3499:1;3492:31;3546:4;3543:1;3536:15;3574:4;3571:1;3564:15;3428:2;;3270:325;;;:::o;3600:127::-;3661:10;3656:3;3652:20;3649:1;3642:31;3692:4;3689:1;3682:15;3716:4;3713:1;3706:15

Swarm Source

ipfs://8392cd46fdbb37c8e74b993c30d74c3fee9cc5cf769eea98a5ee426a28593eed

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.