Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
EasyMineTokenWallet
Compiler Version
v0.4.13+commit.fb4cb1a
Optimization Enabled:
Yes with 0 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-08-24 */ pragma solidity ^0.4.13; contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public getter functions are not currently recognised as an implementation of the matching abstract function by the compiler. */ /// total amount of tokens uint256 public totalSupply; /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance); /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _value) returns (bool success); /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transferFrom(address _from, address _to, uint256 _value) returns (bool success); /// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint256 _value) returns (bool success); /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent function allowance(address _owner, address _spender) constant returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract StandardToken is Token { function transfer(address _to, uint256 _value) returns (bool success) { //Default assumes totalSupply can't be over max (2^256 - 1). //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap. //Replace the if with this one instead. //if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) { if (balances[msg.sender] >= _value && _value > 0) { balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { //same as above. Replace this line with the following if you want to protect against wrapping uints. //if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) { if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) { balances[_to] += _value; balances[_from] -= _value; allowed[_from][msg.sender] -= _value; Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) constant returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowed[_owner][_spender]; } mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; } contract EasyMineToken is StandardToken { string public constant name = "easyMINE Token"; string public constant symbol = "EMT"; uint8 public constant decimals = 18; function EasyMineToken(address _icoAddress, address _preIcoAddress, address _easyMineWalletAddress, address _bountyWalletAddress) { require(_icoAddress != 0x0); require(_preIcoAddress != 0x0); require(_easyMineWalletAddress != 0x0); require(_bountyWalletAddress != 0x0); totalSupply = 33000000 * 10**18; // 33.000.000 EMT uint256 icoTokens = 27000000 * 10**18; // 27.000.000 EMT uint256 preIcoTokens = 2000000 * 10**18; // 2.000.000 EMT uint256 easyMineTokens = 3000000 * 10**18; // 1.500.000 EMT dev team + // 500.000 EMT advisors + // 1.000.000 EMT easyMINE corporation + // = 3.000.000 EMT uint256 bountyTokens = 1000000 * 10**18; // 1.000.000 EMT assert(icoTokens + preIcoTokens + easyMineTokens + bountyTokens == totalSupply); balances[_icoAddress] = icoTokens; Transfer(0, _icoAddress, icoTokens); balances[_preIcoAddress] = preIcoTokens; Transfer(0, _preIcoAddress, preIcoTokens); balances[_easyMineWalletAddress] = easyMineTokens; Transfer(0, _easyMineWalletAddress, easyMineTokens); balances[_bountyWalletAddress] = bountyTokens; Transfer(0, _bountyWalletAddress, bountyTokens); } function burn(uint256 _value) returns (bool success) { if (balances[msg.sender] >= _value && _value > 0) { balances[msg.sender] -= _value; totalSupply -= _value; Transfer(msg.sender, 0x0, _value); return true; } else { return false; } } } contract EasyMineTokenWallet { uint256 constant public VESTING_PERIOD = 180 days; uint256 constant public DAILY_FUNDS_RELEASE = 15000 * 10**18; // 0.5% * 3M tokens = 15k tokens a day address public owner; address public withdrawalAddress; Token public easyMineToken; uint256 public startTime; uint256 public totalWithdrawn; modifier isOwner() { require(msg.sender == owner); _; } function EasyMineTokenWallet() { owner = msg.sender; } function setup(address _easyMineToken, address _withdrawalAddress) public isOwner { require(_easyMineToken != 0x0); require(_withdrawalAddress != 0x0); easyMineToken = Token(_easyMineToken); withdrawalAddress = _withdrawalAddress; startTime = now; } function withdraw(uint256 requestedAmount) public isOwner returns (uint256 amount) { uint256 limit = maxPossibleWithdrawal(); uint256 withdrawalAmount = requestedAmount; if (requestedAmount > limit) { withdrawalAmount = limit; } if (withdrawalAmount > 0) { if (!easyMineToken.transfer(withdrawalAddress, withdrawalAmount)) { revert(); } totalWithdrawn += withdrawalAmount; } return withdrawalAmount; } function maxPossibleWithdrawal() public constant returns (uint256) { if (now < startTime + VESTING_PERIOD) { return 0; } else { uint256 daysPassed = (now - (startTime + VESTING_PERIOD)) / 86400; uint256 res = DAILY_FUNDS_RELEASE * daysPassed - totalWithdrawn; if (res < 0) { return 0; } else { return res; } } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"VESTING_PERIOD","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"DAILY_FUNDS_RELEASE","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_easyMineToken","type":"address"},{"name":"_withdrawalAddress","type":"address"}],"name":"setup","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"requestedAmount","type":"uint256"}],"name":"withdraw","outputs":[{"name":"amount","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalWithdrawn","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maxPossibleWithdrawal","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"easyMineToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"withdrawalAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"}]
Contract Creation Code
6060604052341561000f57600080fd5b5b60008054600160a060020a03191633600160a060020a03161790555b5b6104648061003c6000396000f300606060405236156100885763ffffffff60e060020a6000350416630197d972811461008d5780630e3589d9146100b25780632d34ba79146100d75780632e1a7d4d146100fe5780634b3197131461012657806356c8c30c1461014b57806378e97925146101705780638da5cb5b14610195578063b956a8a6146101c4578063f2bcd022146101f3575b600080fd5b341561009857600080fd5b6100a0610222565b60405190815260200160405180910390f35b34156100bd57600080fd5b6100a0610229565b60405190815260200160405180910390f35b34156100e257600080fd5b6100fc600160a060020a0360043581169060243516610237565b005b341561010957600080fd5b6100a06004356102b6565b60405190815260200160405180910390f35b341561013157600080fd5b6100a0610398565b60405190815260200160405180910390f35b341561015657600080fd5b6100a061039e565b60405190815260200160405180910390f35b341561017b57600080fd5b6100a0610405565b60405190815260200160405180910390f35b34156101a057600080fd5b6101a861040b565b604051600160a060020a03909116815260200160405180910390f35b34156101cf57600080fd5b6101a861041a565b604051600160a060020a03909116815260200160405180910390f35b34156101fe57600080fd5b6101a8610429565b604051600160a060020a03909116815260200160405180910390f35b62ed4e0081565b69032d26d12e980b60000081565b60005433600160a060020a0390811691161461025257600080fd5b600160a060020a038216151561026757600080fd5b600160a060020a038116151561027c57600080fd5b60028054600160a060020a03808516600160a060020a0319928316179092556001805492841692909116919091179055426003555b5b5050565b600080548190819033600160a060020a039081169116146102d657600080fd5b6102de61039e565b9150839050818411156102ee5750805b600081111561038c57600254600154600160a060020a039182169163a9059cbb91168360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561035d57600080fd5b6102c65a03f1151561036e57600080fd5b50505060405180519050151561038357600080fd5b60048054820190555b8092505b5b5050919050565b60045481565b600080600062ed4e00600354014210156103bb57600092506103fe565b6201518062ed4e006003540142038115156103d257fe5b0491506004548269032d26d12e980b6000000203905060008110156103fa57600092506103fe565b8092505b5b5b505090565b60035481565b600054600160a060020a031681565b600254600160a060020a031681565b600154600160a060020a0316815600a165627a7a723058203d6b129cfdb1632531bf631354b5a1f0eb105a95486164cc1b6dd3a4d7d629770029
Deployed Bytecode
0x606060405236156100885763ffffffff60e060020a6000350416630197d972811461008d5780630e3589d9146100b25780632d34ba79146100d75780632e1a7d4d146100fe5780634b3197131461012657806356c8c30c1461014b57806378e97925146101705780638da5cb5b14610195578063b956a8a6146101c4578063f2bcd022146101f3575b600080fd5b341561009857600080fd5b6100a0610222565b60405190815260200160405180910390f35b34156100bd57600080fd5b6100a0610229565b60405190815260200160405180910390f35b34156100e257600080fd5b6100fc600160a060020a0360043581169060243516610237565b005b341561010957600080fd5b6100a06004356102b6565b60405190815260200160405180910390f35b341561013157600080fd5b6100a0610398565b60405190815260200160405180910390f35b341561015657600080fd5b6100a061039e565b60405190815260200160405180910390f35b341561017b57600080fd5b6100a0610405565b60405190815260200160405180910390f35b34156101a057600080fd5b6101a861040b565b604051600160a060020a03909116815260200160405180910390f35b34156101cf57600080fd5b6101a861041a565b604051600160a060020a03909116815260200160405180910390f35b34156101fe57600080fd5b6101a8610429565b604051600160a060020a03909116815260200160405180910390f35b62ed4e0081565b69032d26d12e980b60000081565b60005433600160a060020a0390811691161461025257600080fd5b600160a060020a038216151561026757600080fd5b600160a060020a038116151561027c57600080fd5b60028054600160a060020a03808516600160a060020a0319928316179092556001805492841692909116919091179055426003555b5b5050565b600080548190819033600160a060020a039081169116146102d657600080fd5b6102de61039e565b9150839050818411156102ee5750805b600081111561038c57600254600154600160a060020a039182169163a9059cbb91168360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561035d57600080fd5b6102c65a03f1151561036e57600080fd5b50505060405180519050151561038357600080fd5b60048054820190555b8092505b5b5050919050565b60045481565b600080600062ed4e00600354014210156103bb57600092506103fe565b6201518062ed4e006003540142038115156103d257fe5b0491506004548269032d26d12e980b6000000203905060008110156103fa57600092506103fe565b8092505b5b5b505090565b60035481565b600054600160a060020a031681565b600254600160a060020a031681565b600154600160a060020a0316815600a165627a7a723058203d6b129cfdb1632531bf631354b5a1f0eb105a95486164cc1b6dd3a4d7d629770029
Swarm Source
bzzr://3d6b129cfdb1632531bf631354b5a1f0eb105a95486164cc1b6dd3a4d7d62977
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.