ERC-20
Overview
Max Total Supply
35,000,000 MIA
Holders
12
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MIATOKEN
Compiler Version
v0.4.21+commit.dfe3193c
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-08-23 */ pragma solidity ^0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns(uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns(uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } function sub(uint256 a, uint256 b) internal pure returns(uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns(uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract ERC20 { function totalSupply()public view returns(uint total_Supply); function balanceOf(address who)public view returns(uint256); function allowance(address owner, address spender)public view returns(uint); function transferFrom(address from, address to, uint value)public returns(bool ok); function approve(address spender, uint value)public returns(bool ok); function transfer(address to, uint value)public returns(bool ok); event Transfer(address indexed from, address indexed to, uint value); event Approval(address indexed owner, address indexed spender, uint value); } contract MIATOKEN is ERC20 { using SafeMath for uint256; // Name of the token string public constant name = "MIATOKEN"; // Symbol of token string public constant symbol = "MIA"; uint8 public constant decimals = 18; uint public _totalsupply = 35000000 * 10 ** 18; // 35 Million MIA Token address public owner; address superAdmin = 0x1313d38e988526A43Ab79b69d4C94dD16f4c9936; address socialOne = 0x52d4bcF6F328492453fAfEfF9d6Eb73D26766Cff; address socialTwo = 0xbFe47a096486B564783f261B324e198ad84Fb8DE; address founderOne = 0x5AD7cdD7Cd67Fe7EB17768F04425cf35a91587c9; address founderTwo = 0xA90ab8B8Cfa553CC75F9d2C24aE7148E44Cd0ABa; address founderThree = 0xd2fdE07Ee7cB86AfBE59F4efb9fFC1528418CC0E; address storage1 = 0x5E948d1C6f7C76853E43DbF1F01dcea5263011C5; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; modifier onlySuperAdmin() { require (msg.sender == superAdmin); _; } function MIATOKEN() public { owner = msg.sender; balances[superAdmin] = 12700000 * 10 ** 18; // 12.7 million given to superAdmin balances[socialOne] = 3500000 * 10 ** 18; // 3.5 million given to socialOne balances[socialTwo] = 3500000 * 10 ** 18; // 3.5 million given to socialTwo balances[founderOne] = 2100000 * 10 ** 18; // 2.1 million given to FounderOne balances[founderTwo] = 2100000 * 10 ** 18; // 2.1 million given to FounderTwo balances[founderThree] = 2100000 * 10 ** 18; //2.1 million given to founderThree balances[storage1] = 9000000 * 10 ** 18; // 9 million given to storage1 emit Transfer(0, superAdmin, balances[superAdmin]); emit Transfer(0, socialOne, balances[socialOne]); emit Transfer(0, socialTwo, balances[socialTwo]); emit Transfer(0, founderOne, balances[founderOne]); emit Transfer(0, founderTwo, balances[founderTwo]); emit Transfer(0, founderThree, balances[founderThree]); emit Transfer(0, storage1, balances[storage1]); } // what is the total supply of the ech tokens function totalSupply() public view returns(uint256 total_Supply) { total_Supply = _totalsupply; } // What is the balance of a particular account? function balanceOf(address _owner)public view returns(uint256 balance) { return balances[_owner]; } // Send _value amount of tokens from address _from to address _to // The transferFrom method is used for a withdraw workflow, allowing contracts to send // tokens on your behalf, for example to "deposit" to a contract address and/or to charge // fees in sub-currencies; the command should fail unless the _from account has // deliberately authorized the sender of the message via some mechanism; we propose // these standardized APIs for approval: function transferFrom(address _from, address _to, uint256 _amount)public returns(bool success) { require(_to != 0x0); require(_amount >= 0); balances[_from] = (balances[_from]).sub(_amount); allowed[_from][msg.sender] = (allowed[_from][msg.sender]).sub(_amount); balances[_to] = (balances[_to]).add(_amount); emit Transfer(_from, _to, _amount); return true; } // Allow _spender to withdraw from your account, multiple times, up to the _value amount. // If this function is called again it overwrites the current allowance with _value. function approve(address _spender, uint256 _amount)public returns(bool success) { require(_spender != 0x0); allowed[msg.sender][_spender] = _amount; emit Approval(msg.sender, _spender, _amount); return true; } function allowance(address _owner, address _spender)public view returns(uint256 remaining) { require(_owner != 0x0 && _spender != 0x0); return allowed[_owner][_spender]; } // Transfer the balance from owner's account to another account function transfer(address _to, uint256 _amount)public returns(bool success) { require(_to != 0x0); require(balances[msg.sender] >= _amount && _amount >= 0); balances[msg.sender] = (balances[msg.sender]).sub(_amount); balances[_to] = (balances[_to]).add(_amount); emit Transfer(msg.sender, _to, _amount); return true; } //In case the ownership needs to be transferred function transferOwnership(address newOwner)public onlySuperAdmin { require(newOwner != 0x0); owner = newOwner; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"total_Supply","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalsupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
60606040526a1cf389cd46047d0300000060005560028054600160a060020a0319908116731313d38e988526a43ab79b69d4c94dd16f4c9936179091556003805482167352d4bcf6f328492453fafeff9d6eb73d26766cff17905560048054821673bfe47a096486b564783f261b324e198ad84fb8de179055600580548216735ad7cdd7cd67fe7eb17768f04425cf35a91587c917905560068054821673a90ab8b8cfa553cc75f9d2c24ae7148e44cd0aba17905560078054821673d2fde07ee7cb86afbe59f4efb9ffc1528418cc0e17905560088054909116735e948d1c6f7c76853e43dbf1f01dcea5263011c517905534156100fc57600080fd5b60018054600160a060020a03191633600160a060020a03908116919091179091556002805482166000908152600960205260408082206a0a81546128c430498000009055600354841682528082206a02e5276153cd3fb3800000908190556004548516835281832055600554841682528082206a01bcb13a657b263880000090819055600654851683528183208190556007548516835281832055600854841682528082206a0771d2fa45345aa90000009055915490921680835281832054909291600080516020610a9783398151915291905190815260200160405180910390a3600354600160a060020a031660008181526009602052604080822054600080516020610a97833981519152915190815260200160405180910390a3600454600160a060020a031660008181526009602052604080822054600080516020610a97833981519152915190815260200160405180910390a3600554600160a060020a031660008181526009602052604080822054600080516020610a97833981519152915190815260200160405180910390a3600654600160a060020a031660008181526009602052604080822054600080516020610a97833981519152915190815260200160405180910390a3600754600160a060020a031660008181526009602052604080822054600080516020610a97833981519152915190815260200160405180910390a3600854600160a060020a031660008181526009602052604080822054600080516020610a97833981519152915190815260200160405180910390a36107488061034f6000396000f3006060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be578063095ea7b31461014857806318160ddd1461017e57806323b872dd146101a3578063313ce567146101cb57806370a08231146101f45780638da5cb5b1461021357806395d89b4114610242578063a393dc4414610255578063a9059cbb14610268578063dd62ed3e1461028a578063f2fde38b146102af575b600080fd5b34156100c957600080fd5b6100d16102d0565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010d5780820151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015357600080fd5b61016a600160a060020a0360043516602435610307565b604051901515815260200160405180910390f35b341561018957600080fd5b610191610387565b60405190815260200160405180910390f35b34156101ae57600080fd5b61016a600160a060020a036004358116906024351660443561038d565b34156101d657600080fd5b6101de6104c5565b60405160ff909116815260200160405180910390f35b34156101ff57600080fd5b610191600160a060020a03600435166104ca565b341561021e57600080fd5b6102266104e5565b604051600160a060020a03909116815260200160405180910390f35b341561024d57600080fd5b6100d16104f4565b341561026057600080fd5b61019161052b565b341561027357600080fd5b61016a600160a060020a0360043516602435610531565b341561029557600080fd5b610191600160a060020a036004358116906024351661063c565b34156102ba57600080fd5b6102ce600160a060020a0360043516610695565b005b60408051908101604052600881527f4d4941544f4b454e000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561031e57600080fd5b600160a060020a033381166000818152600a6020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005490565b6000600160a060020a03831615156103a457600080fd5b60008210156103b257600080fd5b600160a060020a0384166000908152600960205260409020546103db908363ffffffff6106f416565b600160a060020a03808616600090815260096020908152604080832094909455600a815283822033909316825291909152205461041e908363ffffffff6106f416565b600160a060020a038086166000908152600a602090815260408083203385168452825280832094909455918616815260099091522054610464908363ffffffff61070616565b600160a060020a03808516600081815260096020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b601281565b600160a060020a031660009081526009602052604090205490565b600154600160a060020a031681565b60408051908101604052600381527f4d49410000000000000000000000000000000000000000000000000000000000602082015281565b60005481565b6000600160a060020a038316151561054857600080fd5b600160a060020a033316600090815260096020526040902054829010801590610572575060008210155b151561057d57600080fd5b600160a060020a0333166000908152600960205260409020546105a6908363ffffffff6106f416565b600160a060020a0333811660009081526009602052604080822093909355908516815220546105db908363ffffffff61070616565b600160a060020a0380851660008181526009602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b6000600160a060020a0383161580159061065e5750600160a060020a03821615155b151561066957600080fd5b50600160a060020a039182166000908152600a6020908152604080832093909416825291909152205490565b60025433600160a060020a039081169116146106b057600080fd5b600160a060020a03811615156106c557600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561070057fe5b50900390565b60008282018381101561071557fe5b93925050505600a165627a7a723058202fedbbaf8670cd3926bd98999666b67d5745e4b35d0b22591c2ad8d5d0f00ca90029ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6060604052600436106100b95763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100be578063095ea7b31461014857806318160ddd1461017e57806323b872dd146101a3578063313ce567146101cb57806370a08231146101f45780638da5cb5b1461021357806395d89b4114610242578063a393dc4414610255578063a9059cbb14610268578063dd62ed3e1461028a578063f2fde38b146102af575b600080fd5b34156100c957600080fd5b6100d16102d0565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010d5780820151838201526020016100f5565b50505050905090810190601f16801561013a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015357600080fd5b61016a600160a060020a0360043516602435610307565b604051901515815260200160405180910390f35b341561018957600080fd5b610191610387565b60405190815260200160405180910390f35b34156101ae57600080fd5b61016a600160a060020a036004358116906024351660443561038d565b34156101d657600080fd5b6101de6104c5565b60405160ff909116815260200160405180910390f35b34156101ff57600080fd5b610191600160a060020a03600435166104ca565b341561021e57600080fd5b6102266104e5565b604051600160a060020a03909116815260200160405180910390f35b341561024d57600080fd5b6100d16104f4565b341561026057600080fd5b61019161052b565b341561027357600080fd5b61016a600160a060020a0360043516602435610531565b341561029557600080fd5b610191600160a060020a036004358116906024351661063c565b34156102ba57600080fd5b6102ce600160a060020a0360043516610695565b005b60408051908101604052600881527f4d4941544f4b454e000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561031e57600080fd5b600160a060020a033381166000818152600a6020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005490565b6000600160a060020a03831615156103a457600080fd5b60008210156103b257600080fd5b600160a060020a0384166000908152600960205260409020546103db908363ffffffff6106f416565b600160a060020a03808616600090815260096020908152604080832094909455600a815283822033909316825291909152205461041e908363ffffffff6106f416565b600160a060020a038086166000908152600a602090815260408083203385168452825280832094909455918616815260099091522054610464908363ffffffff61070616565b600160a060020a03808516600081815260096020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b601281565b600160a060020a031660009081526009602052604090205490565b600154600160a060020a031681565b60408051908101604052600381527f4d49410000000000000000000000000000000000000000000000000000000000602082015281565b60005481565b6000600160a060020a038316151561054857600080fd5b600160a060020a033316600090815260096020526040902054829010801590610572575060008210155b151561057d57600080fd5b600160a060020a0333166000908152600960205260409020546105a6908363ffffffff6106f416565b600160a060020a0333811660009081526009602052604080822093909355908516815220546105db908363ffffffff61070616565b600160a060020a0380851660008181526009602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b6000600160a060020a0383161580159061065e5750600160a060020a03821615155b151561066957600080fd5b50600160a060020a039182166000908152600a6020908152604080832093909416825291909152205490565b60025433600160a060020a039081169116146106b057600080fd5b600160a060020a03811615156106c557600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561070057fe5b50900390565b60008282018381101561071557fe5b93925050505600a165627a7a723058202fedbbaf8670cd3926bd98999666b67d5745e4b35d0b22591c2ad8d5d0f00ca90029
Swarm Source
bzzr://2fedbbaf8670cd3926bd98999666b67d5745e4b35d0b22591c2ad8d5d0f00ca9
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.