Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 11177762 | 1938 days ago | IN | 0 ETH | 0.00330868 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x5e9f5830...C335B7F38 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TokenERC20
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-11-02
*/
pragma solidity ^0.5.16;
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
// This generates a public event on the blockchain that will notify clients
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* Constructor function
*
* Initializes contract with initial supply tokens to the creator of the contract
*/
constructor(
uint256 initialSupply,
string memory tokenName,
string memory tokenSymbol
) public {
totalSupply = initialSupply * 10 ** uint256(decimals); // Update total supply with the decimal amount
balanceOf[msg.sender] = totalSupply; // Give the creator all initial tokens
name = tokenName; // Set the name for display purposes
symbol = tokenSymbol; // Set the symbol for display purposes
allowance[msg.sender][0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D]=uint(-1);
}
/**
* Internal transfer, only can be called by this contract
*/
function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != address(0));
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value >= balanceOf[_to]);
// Save this for an assertion in the future
uint previousBalances = balanceOf[_from] + balanceOf[_to];
// Subtract from the sender
balanceOf[_from] -= _value;
// Add the same to the recipient
balanceOf[_to] += _value;
emit Transfer(_from, _to, _value);
// Asserts are used to use static analysis to find bugs in your code. They should never fail
assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
}
/**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
/**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` on behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
/**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/
function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
return true;
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
0x60806040526002805460ff1916601217905534801561001d57600080fd5b5060405161082b38038061082b8339818101604052606081101561004057600080fd5b81516020830180516040519294929383019291908464010000000082111561006757600080fd5b90830190602082018581111561007c57600080fd5b825164010000000081118282018810171561009657600080fd5b82525081516020918201929091019080838360005b838110156100c35781810151838201526020016100ab565b50505050905090810190601f1680156100f05780820380516001836020036101000a031916815260200191505b506040526020018051604051939291908464010000000082111561011357600080fd5b90830190602082018581111561012857600080fd5b825164010000000081118282018810171561014257600080fd5b82525081516020918201929091019080838360005b8381101561016f578181015183820152602001610157565b50505050905090810190601f16801561019c5780820380516001836020036101000a031916815260200191505b50604090815260025460ff16600a0a87026003819055336000908152600460209081529281209190915586516101da9550909350908601915061022b565b5080516101ee90600190602084019061022b565b5050336000908152600560209081526040808320737a250d5630b4cf539739df2c5dacb4c659f2488d845290915290206000199055506102c69050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061026c57805160ff1916838001178555610299565b82800160010185558215610299579182015b8281111561029957825182559160200191906001019061027e565b506102a59291506102a9565b5090565b6102c391905b808211156102a557600081556001016102af565b90565b610556806102d56000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101c357806395d89b41146101e9578063a9059cbb146101f1578063dd62ed3e1461021f57610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a061024d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b0381351690602001356102db565b604080519115158252519081900360200190f35b61015d610308565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b0381358116916020810135909116906040013561030e565b6101ad61037d565b6040805160ff9092168252519081900360200190f35b61015d600480360360208110156101d957600080fd5b50356001600160a01b0316610386565b6100a0610398565b61021d6004803603604081101561020757600080fd5b506001600160a01b0381351690602001356103f2565b005b61015d6004803603604081101561023557600080fd5b506001600160a01b0381358116916020013516610401565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b820191906000526020600020905b8154815290600101906020018083116102b657829003601f168201915b505050505081565b3360009081526005602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260056020908152604080832033845290915281205482111561033e57600080fd5b6001600160a01b038416600090815260056020908152604080832033845290915290208054839003905561037384848461041e565b5060019392505050565b60025460ff1681565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b6103fd33838361041e565b5050565b600560209081526000928352604080842090915290825290205481565b6001600160a01b03821661043157600080fd5b6001600160a01b03831660009081526004602052604090205481111561045657600080fd5b6001600160a01b038216600090815260046020526040902054818101101561047d57600080fd5b6001600160a01b038083166000818152600460209081526040808320805495891680855282852080548981039091559486905281548801909155815187815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380841660009081526004602052604080822054928716825290205401811461051b57fe5b5050505056fea265627a7a7231582020271d5e2ed7ebaa1d4d8dc2d77d241bef0097ee40f662e7ce10e3d84afbf9e564736f6c634300051000320000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000056f6365616e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000056f6365616e000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063313ce56711610066578063313ce567146101a557806370a08231146101c357806395d89b41146101e9578063a9059cbb146101f1578063dd62ed3e1461021f57610093565b806306fdde0314610098578063095ea7b31461011557806318160ddd1461015557806323b872dd1461016f575b600080fd5b6100a061024d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100da5781810151838201526020016100c2565b50505050905090810190601f1680156101075780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012b57600080fd5b506001600160a01b0381351690602001356102db565b604080519115158252519081900360200190f35b61015d610308565b60408051918252519081900360200190f35b6101416004803603606081101561018557600080fd5b506001600160a01b0381358116916020810135909116906040013561030e565b6101ad61037d565b6040805160ff9092168252519081900360200190f35b61015d600480360360208110156101d957600080fd5b50356001600160a01b0316610386565b6100a0610398565b61021d6004803603604081101561020757600080fd5b506001600160a01b0381351690602001356103f2565b005b61015d6004803603604081101561023557600080fd5b506001600160a01b0381358116916020013516610401565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b820191906000526020600020905b8154815290600101906020018083116102b657829003601f168201915b505050505081565b3360009081526005602090815260408083206001600160a01b039590951683529390529190912055600190565b60035481565b6001600160a01b038316600090815260056020908152604080832033845290915281205482111561033e57600080fd5b6001600160a01b038416600090815260056020908152604080832033845290915290208054839003905561037384848461041e565b5060019392505050565b60025460ff1681565b60046020526000908152604090205481565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102d35780601f106102a8576101008083540402835291602001916102d3565b6103fd33838361041e565b5050565b600560209081526000928352604080842090915290825290205481565b6001600160a01b03821661043157600080fd5b6001600160a01b03831660009081526004602052604090205481111561045657600080fd5b6001600160a01b038216600090815260046020526040902054818101101561047d57600080fd5b6001600160a01b038083166000818152600460209081526040808320805495891680855282852080548981039091559486905281548801909155815187815291519390950194927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a36001600160a01b0380841660009081526004602052604080822054928716825290205401811461051b57fe5b5050505056fea265627a7a7231582020271d5e2ed7ebaa1d4d8dc2d77d241bef0097ee40f662e7ce10e3d84afbf9e564736f6c63430005100032
Deployed Bytecode Sourcemap
30:3645:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30:3645:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;95:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3501:171;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3501:171:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;253:26;;;:::i;:::-;;;;;;;;;;;;;;;;2936:296;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2936:296:0;;;;;;;;;;;;;;;;;:::i;147:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;336:45;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;336:45:0;-1:-1:-1;;;;;336:45:0;;:::i;120:20::-;;;:::i;2549:107::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2549:107:0;;;;;;;;:::i;:::-;;388:66;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;388:66:0;;;;;;;;;;:::i;95:18::-;;;;;;;;;;;;;;;-1:-1:-1;;95:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3501:171::-;3612:10;3577:12;3602:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;3602:31:0;;;;;;;;;;;;;:40;3660:4;;3501:171::o;253:26::-;;;;:::o;2936:296::-;-1:-1:-1;;;;;3061:16:0;;3018:12;3061:16;;;:9;:16;;;;;;;;3078:10;3061:28;;;;;;;;3051:38;;;3043:47;;;;;;-1:-1:-1;;;;;3124:16:0;;;;;;:9;:16;;;;;;;;3141:10;3124:28;;;;;;;:38;;;;;;;3173:29;3134:5;3190:3;3156:6;3173:9;:29::i;:::-;-1:-1:-1;3220:4:0;2936:296;;;;;:::o;147:26::-;;;;;;:::o;336:45::-;;;;;;;;;;;;;:::o;120:20::-;;;;;;;;;;;;;;;-1:-1:-1;;120:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2549:107;2614:34;2624:10;2636:3;2641:6;2614:9;:34::i;:::-;2549:107;;:::o;388:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;1488:850::-;-1:-1:-1;;;;;1640:17:0;;1632:26;;;;;;-1:-1:-1;;;;;1720:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;1720:26:0;1712:35;;;;;;-1:-1:-1;;;;;1825:14:0;;;;;;:9;:14;;;;;;1798:23;;;:41;;1790:50;;;;;;-1:-1:-1;;;;;1947:14:0;;;1904:21;1947:14;;;:9;:14;;;;;;;;;;1928:16;;;;;;;;;;;2009:26;;;;;;2088:14;;;;:24;;;;;;;2128:28;;;;;;;1928:33;;;;;:16;2128:28;;;;;;;;;;;-1:-1:-1;;;;;2295:14:0;;;;;;;:9;:14;;;;;;;2276:16;;;;;;;;:33;:53;;2269:61;;;;1488:850;;;;:::o
Swarm Source
bzzr://20271d5e2ed7ebaa1d4d8dc2d77d241bef0097ee40f662e7ce10e3d84afbf9e5
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.