ERC-20
DeFi
Overview
Max Total Supply
100,000,000 STN
Holders
1,542 (0.00%)
Market
Price
$0.00 @ 0.000001 ETH (+2.62%)
Onchain Market Cap
$191,651.07
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
462.962963 STNValue
$0.89 ( ~0.000264337497309491 Eth) [0.0005%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Token
Compiler Version
v0.6.0+commit.26b70077
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-07 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.0; // Part: SafeMath library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); return c; } function sub(uint a, uint b) internal pure returns (uint c) { require(b <= a); c = a - b; return c; } function mul(uint a, uint b) internal pure returns (uint c) { c = a * b; require(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal pure returns (uint c) { require(b > 0); c = a / b; return c; } } // File: Token.sol /** @title Bare-bones Token implementation @notice Based on the ERC-20 token standard as defined at https://eips.ethereum.org/EIPS/eip-20 */ contract Token { using SafeMath for uint256; string public symbol; string public name; uint8 public decimals; uint256 public totalSupply; mapping(address => uint256) balances; mapping(address => mapping(address => uint256)) allowed; event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); constructor( string memory _name, string memory _symbol, uint8 _decimals, uint256 _totalSupply ) public { name = _name; symbol = _symbol; decimals = _decimals; totalSupply = _totalSupply; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); } /** @notice Getter to check the current balance of an address @param _owner Address to query the balance of @return Token balance */ function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; } /** @notice Getter to check the amount of tokens that an owner allowed to a spender @param _owner The address which owns the funds @param _spender The address which will spend the funds @return The amount of tokens still available for the spender */ function allowance( address _owner, address _spender ) public view returns (uint256) { return allowed[_owner][_spender]; } /** @notice Approve an address to spend the specified amount of tokens on behalf of msg.sender @dev Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 @param _spender The address which will spend the funds. @param _value The amount of tokens to be spent. @return Success boolean */ function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } /** shared logic for transfer and transferFrom */ function _transfer(address _from, address _to, uint256 _value) internal { require(balances[_from] >= _value, "Insufficient balance"); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(_from, _to, _value); } /** @notice Transfer tokens to a specified address @param _to The address to transfer to @param _value The amount to be transferred @return Success boolean */ function transfer(address _to, uint256 _value) public returns (bool) { _transfer(msg.sender, _to, _value); return true; } /** @notice Transfer tokens from one address to another @param _from The address which you want to send tokens from @param _to The address which you want to transfer to @param _value The amount of tokens to be transferred @return Success boolean */ function transferFrom( address _from, address _to, uint256 _value ) public returns (bool) { require(allowed[_from][msg.sender] >= _value, "Insufficient allowance"); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value); _transfer(_from, _to, _value); return true; } function increaseAllowance(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_value); return true; } function decreaseAllowance(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].sub(_value); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"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":"_owner","type":"address"},{"internalType":"address","name":"_spender","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":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610a36380380610a368339818101604052608081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b90830190602082018581111561006857600080fd5b825164010000000081118282018810171561008257600080fd5b82525081516020918201929091019080838360005b838110156100af578181015183820152602001610097565b50505050905090810190601f1680156100dc5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156100ff57600080fd5b90830190602082018581111561011457600080fd5b825164010000000081118282018810171561012e57600080fd5b82525081516020918201929091019080838360005b8381101561015b578181015183820152602001610143565b50505050905090810190601f1680156101885780820380516001836020036101000a031916815260200191505b5060409081526020828101519290910151865192945092506101af91600191870190610228565b5082516101c3906000906020860190610228565b506002805460ff191660ff84161790556003819055336000818152600460209081526040808320859055805185815290517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3505050506102c3565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061026957805160ff1916838001178555610296565b82800160010185558215610296579182015b8281111561029657825182559160200191906001019061027b565b506102a29291506102a6565b5090565b6102c091905b808211156102a257600081556001016102ac565b90565b610764806102d26000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b038135169060200135610346565b604080519115158252519081900360200190f35b6101736103ac565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b038135811691602081013590911690604001356103b2565b6101c3610490565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610499565b6101736004803603602081101561021b57600080fd5b50356001600160a01b03166104fa565b6100b6610515565b6101576004803603604081101561024957600080fd5b506001600160a01b038135169060200135610570565b6101576004803603604081101561027557600080fd5b506001600160a01b0381351690602001356105a4565b610173600480360360408110156102a157600080fd5b506001600160a01b03813581169160200135166105ba565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561033e5780601f106103135761010080835404028352916020019161033e565b820191906000526020600020905b81548152906001019060200180831161032157829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6001600160a01b0383166000908152600560209081526040808320338452909152812054821115610423576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015290519081900360640190fd5b6001600160a01b0384166000908152600560209081526040808320338452909152902054610457908363ffffffff6105e516565b6001600160a01b03851660009081526005602090815260408083203384529091529020556104868484846105fa565b5060019392505050565b60025460ff1681565b3360009081526005602090815260408083206001600160a01b03861684529091528120546104cd908363ffffffff61071816565b3360009081526005602090815260408083206001600160a01b038816845290915290205550600192915050565b6001600160a01b031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561033e5780601f106103135761010080835404028352916020019161033e565b3360009081526005602090815260408083206001600160a01b03861684529091528120546104cd908363ffffffff6105e516565b60006105b13384846105fa565b50600192915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6000828211156105f457600080fd5b50900390565b6001600160a01b03831660009081526004602052604090205481111561065e576040805162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015290519081900360640190fd5b6001600160a01b038316600090815260046020526040902054610687908263ffffffff6105e516565b6001600160a01b0380851660009081526004602052604080822093909355908416815220546106bc908263ffffffff61071816565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b8181018281101561072857600080fd5b9291505056fea26469706673582212207548093a15957a00529c4b6b8d49068a7a407fdd3376fc80d13bb176a08ffdea64736f6c63430006000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000000000000000000000000b53746f6e6520546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000353544e0000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063395093511161007157806339509351146101d957806370a082311461020557806395d89b411461022b578063a457c2d714610233578063a9059cbb1461025f578063dd62ed3e1461028b576100a9565b806306fdde03146100ae578063095ea7b31461012b57806318160ddd1461016b57806323b872dd14610185578063313ce567146101bb575b600080fd5b6100b66102b9565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100f05781810151838201526020016100d8565b50505050905090810190601f16801561011d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101576004803603604081101561014157600080fd5b506001600160a01b038135169060200135610346565b604080519115158252519081900360200190f35b6101736103ac565b60408051918252519081900360200190f35b6101576004803603606081101561019b57600080fd5b506001600160a01b038135811691602081013590911690604001356103b2565b6101c3610490565b6040805160ff9092168252519081900360200190f35b610157600480360360408110156101ef57600080fd5b506001600160a01b038135169060200135610499565b6101736004803603602081101561021b57600080fd5b50356001600160a01b03166104fa565b6100b6610515565b6101576004803603604081101561024957600080fd5b506001600160a01b038135169060200135610570565b6101576004803603604081101561027557600080fd5b506001600160a01b0381351690602001356105a4565b610173600480360360408110156102a157600080fd5b506001600160a01b03813581169160200135166105ba565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561033e5780601f106103135761010080835404028352916020019161033e565b820191906000526020600020905b81548152906001019060200180831161032157829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035481565b6001600160a01b0383166000908152600560209081526040808320338452909152812054821115610423576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015290519081900360640190fd5b6001600160a01b0384166000908152600560209081526040808320338452909152902054610457908363ffffffff6105e516565b6001600160a01b03851660009081526005602090815260408083203384529091529020556104868484846105fa565b5060019392505050565b60025460ff1681565b3360009081526005602090815260408083206001600160a01b03861684529091528120546104cd908363ffffffff61071816565b3360009081526005602090815260408083206001600160a01b038816845290915290205550600192915050565b6001600160a01b031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561033e5780601f106103135761010080835404028352916020019161033e565b3360009081526005602090815260408083206001600160a01b03861684529091528120546104cd908363ffffffff6105e516565b60006105b13384846105fa565b50600192915050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b6000828211156105f457600080fd5b50900390565b6001600160a01b03831660009081526004602052604090205481111561065e576040805162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015290519081900360640190fd5b6001600160a01b038316600090815260046020526040902054610687908263ffffffff6105e516565b6001600160a01b0380851660009081526004602052604080822093909355908416815220546106bc908263ffffffff61071816565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b8181018281101561072857600080fd5b9291505056fea26469706673582212207548093a15957a00529c4b6b8d49068a7a407fdd3376fc80d13bb176a08ffdea64736f6c63430006000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000000000000000000000000b53746f6e6520546f6b656e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000353544e0000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Stone Token
Arg [1] : _symbol (string): STN
Arg [2] : _decimals (uint8): 18
Arg [3] : _totalSupply (uint256): 100000000000000000000000000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 53746f6e6520546f6b656e000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 53544e0000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.