ETH Price: $3,669.86 (+2.29%)

Token

ERC-20: Eureka (ERK)
 

Overview

Max Total Supply

150,000,000 ERK

Holders

212

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,962 ERK

Value
$0.00
0xc43a62c266c42f5f6cfc25e68810403818f5f36d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Eureka

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-04-18
*/

pragma solidity ^0.4.24;


// ----------------------------------------------------------------------------
// Eureka fixed supply token smart contract
//
// Symbol           : ERK
// Name             : Eureka
// Total Supply     : 150,000,000
// Decimals         : 18
// ----------------------------------------------------------------------------


// ----------------------------------------------------------------------------
// Safe math
// ----------------------------------------------------------------------------
library SafeMath {
    function add(uint a, uint b) internal pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }
    function sub(uint a, uint b) internal pure returns (uint c) {
        require(b <= a);
        c = a - b;
    }
    function mul(uint a, uint b) internal pure returns (uint c) {
        c = a * b;
        require(a == 0 || c / a == b);
    }
    function div(uint a, uint b) internal pure returns (uint c) {
        require(b > 0);
        c = a / b;
    }
}


// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
// ----------------------------------------------------------------------------
contract ERC20Interface {
    function totalSupply() public view returns (uint);
    function balanceOf(address tokenOwner) public view returns (uint balance);
    function allowance(address tokenOwner, address spender) public view returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);

    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}


// ----------------------------------------------------------------------------
// ERC20 Token, with the addition of symbol, name and decimals and an
// ----------------------------------------------------------------------------
contract Eureka is ERC20Interface {
    
    using SafeMath for uint;

    string public symbol;
    string public  name;
    uint8 public decimals;
    uint public _totalSupply;

    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowed;
    
    
    // ------------------------------------------------------------------------
    // Constructor
    // ------------------------------------------------------------------------
    constructor() public {
        symbol = "ERK";
        name = "Eureka";
        decimals = 18;
        _totalSupply = 150000000;
        _totalSupply = _totalSupply.mul(10 ** uint(decimals));
        balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }
    
    
    // ------------------------------------------------------------------------
    // Reject when someone sends ethers to this contract
    // ------------------------------------------------------------------------
    function() public payable {
        revert();
    }
    
    
    // ------------------------------------------------------------------------
    // Total supply
    // ------------------------------------------------------------------------
    function totalSupply() public view returns (uint) {
        return _totalSupply;
    }


    // ------------------------------------------------------------------------
    // Get the token balance for account `tokenOwner`
    // ------------------------------------------------------------------------
    function balanceOf(address tokenOwner) public view returns (uint balance) {
        return balances[tokenOwner];
    }


    // ------------------------------------------------------------------------
    // Transfer the balance from token owner's account to `to` account
    // - Owner's account must have sufficient balance to transfer
    // - 0 value transfers are allowed
    // ------------------------------------------------------------------------
    function transfer(address to, uint tokens) public returns (bool success) {
        require(to != address(0));
        require(tokens > 0);
        require(balances[msg.sender] >= tokens);
        
        balances[msg.sender] = balances[msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Token owner can approve for `spender` to transferFrom(...) `tokens`
    // from the token owner's account
    //
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
    // recommends that there are no checks for the approval double-spend attack
    // as this should be implemented in user interfaces 
    // ------------------------------------------------------------------------
    function approve(address spender, uint tokens) public returns (bool success) {
        require(spender != address(0));
        require(tokens > 0);
        
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Transfer `tokens` from the `from` account to the `to` account
    // 
    // The calling account must already have sufficient tokens approve(...)-d
    // for spending from the `from` account and
    // - From account must have sufficient balance to transfer
    // - Spender must have sufficient allowance to transfer
    // ------------------------------------------------------------------------
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        require(from != address(0));
        require(to != address(0));
        require(tokens > 0);
        require(balances[from] >= tokens);
        require(allowed[from][msg.sender] >= tokens);
        
        balances[from] = balances[from].sub(tokens);
        allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
        balances[to] = balances[to].add(tokens);
        emit Transfer(from, to, tokens);
        return true;
    }


    // ------------------------------------------------------------------------
    // Returns the amount of tokens approved by the owner that can be
    // transferred to the spender's account
    // ------------------------------------------------------------------------
    function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }
    
    
    // ------------------------------------------------------------------------
    // Increase the amount of tokens that an owner allowed to a spender.
    //
    // approve should be called when allowed[_spender] == 0. To increment
    // allowed value is better to use this function to avoid 2 calls (and wait until
    // the first transaction is mined)
    // _spender The address which will spend the funds.
    // _addedValue The amount of tokens to increase the allowance by.
    // ------------------------------------------------------------------------
    function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
        require(_spender != address(0));
        
        allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
        emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
        return true;
    }
    
    
    // ------------------------------------------------------------------------
    // Decrease the amount of tokens that an owner allowed to a spender.
    //
    // approve should be called when allowed[_spender] == 0. To decrement
    // allowed value is better to use this function to avoid 2 calls (and wait until
    // the first transaction is mined)
    // _spender The address which will spend the funds.
    // _subtractedValue The amount of tokens to decrease the allowance by.
    // ------------------------------------------------------------------------
    function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
        require(_spender != address(0));
        
        uint oldValue = allowed[msg.sender][_spender];
        if (_subtractedValue > oldValue) {
            allowed[msg.sender][_spender] = 0;
        } else {
            allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
        }
        emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
        return true;
    }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"}]

608060405234801561001057600080fd5b506040805180820190915260038082527f45524b000000000000000000000000000000000000000000000000000000000060209092019182526100559160009161014e565b506040805180820190915260068082527f457572656b610000000000000000000000000000000000000000000000000000602090920191825261009a9160019161014e565b506002805460ff1916601217908190556308f0d18060038190556100d09160ff16600a0a64010000000061099d61012382021704565b6003819055336000818152600460209081526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a36101e9565b81810282158061013d575081838281151561013a57fe5b04145b151561014857600080fd5b92915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061018f57805160ff19168380011785556101bc565b828001600101855582156101bc579182015b828111156101bc5782518255916020019190600101906101a1565b506101c89291506101cc565b5090565b6101e691905b808211156101c857600081556001016101d2565b90565b6109ee806101f86000396000f3006080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019657806323b872dd146101bd57806327e235e3146101e7578063313ce567146102085780633eaaf86b146102335780635c65816514610248578063661884631461026f57806370a082311461029357806395d89b41146102b4578063a9059cbb146102c9578063d73dd623146102ed578063dd62ed3e14610311575b600080fd5b3480156100e057600080fd5b506100e9610338565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a03600435166024356103c5565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab610451565b60408051918252519081900360200190f35b3480156101c957600080fd5b50610182600160a060020a0360043581169060243516604435610457565b3480156101f357600080fd5b506101ab600160a060020a03600435166105f0565b34801561021457600080fd5b5061021d610602565b6040805160ff9092168252519081900360200190f35b34801561023f57600080fd5b506101ab61060b565b34801561025457600080fd5b506101ab600160a060020a0360043581169060243516610611565b34801561027b57600080fd5b50610182600160a060020a036004351660243561062e565b34801561029f57600080fd5b506101ab600160a060020a0360043516610737565b3480156102c057600080fd5b506100e9610752565b3480156102d557600080fd5b50610182600160a060020a03600435166024356107ad565b3480156102f957600080fd5b50610182600160a060020a036004351660243561089d565b34801561031d57600080fd5b506101ab600160a060020a036004358116906024351661094d565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bd5780601f10610392576101008083540402835291602001916103bd565b820191906000526020600020905b8154815290600101906020018083116103a057829003601f168201915b505050505081565b6000600160a060020a03831615156103dc57600080fd5b600082116103e957600080fd5b336000818152600560209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60035490565b6000600160a060020a038416151561046e57600080fd5b600160a060020a038316151561048357600080fd5b6000821161049057600080fd5b600160a060020a0384166000908152600460205260409020548211156104b557600080fd5b600160a060020a03841660009081526005602090815260408083203384529091529020548211156104e557600080fd5b600160a060020a03841660009081526004602052604090205461050e908363ffffffff61097816565b600160a060020a038516600090815260046020908152604080832093909355600581528282203383529052205461054b908363ffffffff61097816565b600160a060020a03808616600090815260056020908152604080832033845282528083209490945591861681526004909152205461058f908363ffffffff61098d16565b600160a060020a0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60046020526000908152604090205481565b60025460ff1681565b60035481565b600560209081526000928352604080842090915290825290205481565b600080600160a060020a038416151561064657600080fd5b50336000908152600560209081526040808320600160a060020a03871684529091529020548083111561069c57336000908152600560209081526040808320600160a060020a03881684529091528120556106d1565b6106ac818463ffffffff61097816565b336000908152600560209081526040808320600160a060020a03891684529091529020555b336000818152600560209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bd5780601f10610392576101008083540402835291602001916103bd565b6000600160a060020a03831615156107c457600080fd5b600082116107d157600080fd5b336000908152600460205260409020548211156107ed57600080fd5b3360009081526004602052604090205461080d908363ffffffff61097816565b3360009081526004602052604080822092909255600160a060020a0385168152205461083f908363ffffffff61098d16565b600160a060020a0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000600160a060020a03831615156108b457600080fd5b336000908152600560209081526040808320600160a060020a03871684529091529020546108e8908363ffffffff61098d16565b336000818152600560209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60008282111561098757600080fd5b50900390565b8181018281101561044b57600080fd5b8181028215806109b757508183828115156109b457fe5b04145b151561044b57600080fd00a165627a7a72305820f2d0d886dd9c4eaa5536e811b0567e088607177a2385e6f1684ff3bd6832eda30029

Deployed Bytecode

0x6080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100d4578063095ea7b31461015e57806318160ddd1461019657806323b872dd146101bd57806327e235e3146101e7578063313ce567146102085780633eaaf86b146102335780635c65816514610248578063661884631461026f57806370a082311461029357806395d89b41146102b4578063a9059cbb146102c9578063d73dd623146102ed578063dd62ed3e14610311575b600080fd5b3480156100e057600080fd5b506100e9610338565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012357818101518382015260200161010b565b50505050905090810190601f1680156101505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016a57600080fd5b50610182600160a060020a03600435166024356103c5565b604080519115158252519081900360200190f35b3480156101a257600080fd5b506101ab610451565b60408051918252519081900360200190f35b3480156101c957600080fd5b50610182600160a060020a0360043581169060243516604435610457565b3480156101f357600080fd5b506101ab600160a060020a03600435166105f0565b34801561021457600080fd5b5061021d610602565b6040805160ff9092168252519081900360200190f35b34801561023f57600080fd5b506101ab61060b565b34801561025457600080fd5b506101ab600160a060020a0360043581169060243516610611565b34801561027b57600080fd5b50610182600160a060020a036004351660243561062e565b34801561029f57600080fd5b506101ab600160a060020a0360043516610737565b3480156102c057600080fd5b506100e9610752565b3480156102d557600080fd5b50610182600160a060020a03600435166024356107ad565b3480156102f957600080fd5b50610182600160a060020a036004351660243561089d565b34801561031d57600080fd5b506101ab600160a060020a036004358116906024351661094d565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bd5780601f10610392576101008083540402835291602001916103bd565b820191906000526020600020905b8154815290600101906020018083116103a057829003601f168201915b505050505081565b6000600160a060020a03831615156103dc57600080fd5b600082116103e957600080fd5b336000818152600560209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60035490565b6000600160a060020a038416151561046e57600080fd5b600160a060020a038316151561048357600080fd5b6000821161049057600080fd5b600160a060020a0384166000908152600460205260409020548211156104b557600080fd5b600160a060020a03841660009081526005602090815260408083203384529091529020548211156104e557600080fd5b600160a060020a03841660009081526004602052604090205461050e908363ffffffff61097816565b600160a060020a038516600090815260046020908152604080832093909355600581528282203383529052205461054b908363ffffffff61097816565b600160a060020a03808616600090815260056020908152604080832033845282528083209490945591861681526004909152205461058f908363ffffffff61098d16565b600160a060020a0380851660008181526004602090815260409182902094909455805186815290519193928816927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35060019392505050565b60046020526000908152604090205481565b60025460ff1681565b60035481565b600560209081526000928352604080842090915290825290205481565b600080600160a060020a038416151561064657600080fd5b50336000908152600560209081526040808320600160a060020a03871684529091529020548083111561069c57336000908152600560209081526040808320600160a060020a03881684529091528120556106d1565b6106ac818463ffffffff61097816565b336000908152600560209081526040808320600160a060020a03891684529091529020555b336000818152600560209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103bd5780601f10610392576101008083540402835291602001916103bd565b6000600160a060020a03831615156107c457600080fd5b600082116107d157600080fd5b336000908152600460205260409020548211156107ed57600080fd5b3360009081526004602052604090205461080d908363ffffffff61097816565b3360009081526004602052604080822092909255600160a060020a0385168152205461083f908363ffffffff61098d16565b600160a060020a0384166000818152600460209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000600160a060020a03831615156108b457600080fd5b336000908152600560209081526040808320600160a060020a03871684529091529020546108e8908363ffffffff61098d16565b336000818152600560209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a03918216600090815260056020908152604080832093909416825291909152205490565b60008282111561098757600080fd5b50900390565b8181018281101561044b57600080fd5b8181028215806109b757508183828115156109b457fe5b04145b151561044b57600080fd00a165627a7a72305820f2d0d886dd9c4eaa5536e811b0567e088607177a2385e6f1684ff3bd6832eda30029

Swarm Source

bzzr://f2d0d886dd9c4eaa5536e811b0567e088607177a2385e6f1684ff3bd6832eda3
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.