ETH Price: $3,154.10 (+0.32%)
Gas: 2 Gwei

Token

Slash Token (ST)
 

Overview

Max Total Supply

10,000,000,000 ST

Holders

104

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
59,987.6 ST

Value
$0.00
0x9fa120c13d0a03cb46509730b97b8ec7dd55a052
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:
SlashToken

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-08-14
*/

pragma solidity ^0.4.24;

/**
 * @title introduce
 * @dev erc20: balance, transfer, approve, transferFrom, allowrance
 * @dev plus functions: ownable, pausable
 */

/**
 * @title SafeMath
 * @dev Math operations with safety checks that revert on error
 */
library SafeMath {
  /**
  * @dev Multiplies two numbers, reverts on 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-solidity/pull/522
    if (_a == 0) {
      return 0;
    }

    uint256 c = _a * _b;
    require(c / _a == _b);

    return c;
  }

  /**
  * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.
  */
  function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
    require(_b > 0); // Solidity only automatically asserts 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;
  }

  /**
  * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 _a, uint256 _b) internal pure returns (uint256) {
    require(_b <= _a);
    uint256 c = _a - _b;

    return c;
  }

  /**
  * @dev Adds two numbers, reverts on overflow.
  */
  function add(uint256 _a, uint256 _b) internal pure returns (uint256) {
    uint256 c = _a + _b;
    require(c >= _a);

    return c;
  }

  /**
  * @dev Divides two numbers and returns the remainder (unsigned integer modulo),
  * reverts when dividing by zero.
  */
  function mod(uint256 a, uint256 b) internal pure returns (uint256) {
    require(b != 0);
    return a % b;
  }
}

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  uint256 public totalSupply;
  function balanceOf(address who) constant public returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) constant public returns (uint256);
  function transferFrom(address from, address to, uint256 value) public returns (bool);
  function approve(address spender, uint256 value) public returns (bool);
  event Approval(address indexed owner, address indexed spender, uint256 value);
}

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;
  mapping(address => uint256) balances;
  /**
  * @dev transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) constant public returns (uint256 balance) {
    return balances[_owner];
  }

}

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * @dev https://github.com/ethereum/EIPs/issues/20
 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {
  uint8 public constant decimals = 18;
  uint256 public constant ONE_TOKEN = (10 ** uint256(decimals));
  mapping (address => mapping (address => uint256)) allowed;

  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amout of tokens to be transfered
   */
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
    uint256 _allowance = allowed[_from][msg.sender];

    // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
    // require (_value <= _allowance);

    balances[_to] = balances[_to].add(_value);
    balances[_from] = balances[_from].sub(_value);
    allowed[_from][msg.sender] = _allowance.sub(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender.
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {

    // To change the approve amount you first have to reduce the addresses`
    //  allowance to zero by calling `approve(_spender, 0)` if it is not
    //  already 0 to mitigate the race condition described here:
    //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    require((_value == 0) || (allowed[msg.sender][_spender] == 0));

    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifing the amount of tokens still avaible for the spender.
   */
  function allowance(address _owner, address _spender) constant public returns (uint256 remaining) {
    return allowed[_owner][_spender];
  }
}

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;

  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    if (newOwner != address(0)) {
      owner = newOwner;
    }
  }
}

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;

  /**
   * @dev modifier to allow actions only when the contract IS paused
   */
  modifier whenNotPaused() {
    require(!paused);
    _;
  }

  /**
   * @dev modifier to allow actions only when the contract IS NOT paused
   */
  modifier whenPaused {
    require(paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public returns (bool) {
    paused = true;
    emit Pause();
    return true;
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public returns (bool) {
    paused = false;
    emit Unpause();
    return true;
  }
}

/**
 * @title Slash Token
 * @dev ERC20 Slash Token (ST)
 */
contract SlashToken is StandardToken, Pausable {
  string public constant name = 'Slash Token';                       // Set the token name for display
  string public constant symbol = 'ST';                                       // Set the token symbol for display
  uint256 constant Thousand_Token = 1000 * ONE_TOKEN;
  uint256 constant Million_Token = 1000 * Thousand_Token;
  uint256 constant Billion_Token = 1000 * Million_Token;
  uint256 public constant TOTAL_TOKENS = 10 * Billion_Token;

  /**
   * @dev Slash Token Constructor
   * Runs only on initial contract creation.
   */
  constructor() public {
    totalSupply = TOTAL_TOKENS;                               // Set the total supply
    balances[msg.sender] = TOTAL_TOKENS;                      // Creator address is assigned all
  }

  /**
   * @dev Transfer token for a specified address when not paused
   * @param _to The address to transfer to.
   * @param _value The amount to be transferred.
   */
  function transfer(address _to, uint256 _value) whenNotPaused public returns (bool) {
    require(_to != address(0));
    return super.transfer(_to, _value);
  }

  /**
   * @dev Transfer tokens from one address to another when not paused
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(address _from, address _to, uint256 _value) whenNotPaused public returns (bool) {
    require(_to != address(0));
    return super.transferFrom(_from, _to, _value);
  }

  /**
   * @dev Aprove the passed address to spend the specified amount of tokens on behalf of msg.sender when not paused.
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) whenNotPaused public returns (bool) {
    return super.approve(_spender, _value);
  }
}

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":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"TOTAL_TOKENS","outputs":[{"name":"","type":"uint256"}],"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":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[],"name":"pause","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","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":true,"inputs":[],"name":"ONE_TOKEN","outputs":[{"name":"","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":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","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"},{"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"}]

60806040526003805460a060020a60ff021916905534801561002057600080fd5b5060038054600160a060020a031916339081179091556b204fce5e3e2502611000000060008181559182526001602052604090912055610911806100656000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b3146101745780630b7abf77146101ac57806318160ddd146101d357806323b872dd146101e8578063313ce567146102125780633f4ba83a1461023d5780635c975abb1461025257806370a08231146102675780638456cb59146102885780638da5cb5b1461029d57806395d89b41146102ce578063a9059cbb146102e3578063dd62ed3e14610307578063e443348e1461032e578063f2fde38b14610343575b600080fd5b3480156100f657600080fd5b506100ff610366565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a036004351660243561039d565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c16103c8565b60408051918252519081900360200190f35b3480156101df57600080fd5b506101c16103d8565b3480156101f457600080fd5b50610198600160a060020a03600435811690602435166044356103de565b34801561021e57600080fd5b50610227610420565b6040805160ff9092168252519081900360200190f35b34801561024957600080fd5b50610198610425565b34801561025e57600080fd5b506101986104a4565b34801561027357600080fd5b506101c1600160a060020a03600435166104b4565b34801561029457600080fd5b506101986104cf565b3480156102a957600080fd5b506102b2610553565b60408051600160a060020a039092168252519081900360200190f35b3480156102da57600080fd5b506100ff610562565b3480156102ef57600080fd5b50610198600160a060020a0360043516602435610599565b34801561031357600080fd5b506101c1600160a060020a03600435811690602435166105d2565b34801561033a57600080fd5b506101c16105fd565b34801561034f57600080fd5b50610364600160a060020a0360043516610609565b005b60408051808201909152600b81527f536c61736820546f6b656e000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff16156103b757600080fd5b6103c1838361065b565b9392505050565b6b204fce5e3e2502611000000081565b60005481565b60035460009060a060020a900460ff16156103f857600080fd5b600160a060020a038316151561040d57600080fd5b6104188484846106fd565b949350505050565b601281565b600354600090600160a060020a0316331461043f57600080fd5b60035460a060020a900460ff16151561045757600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a150600190565b60035460a060020a900460ff1681565b600160a060020a031660009081526001602052604090205490565b600354600090600160a060020a031633146104e957600080fd5b60035460a060020a900460ff161561050057600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a150600190565b600354600160a060020a031681565b60408051808201909152600281527f5354000000000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff16156105b357600080fd5b600160a060020a03831615156105c857600080fd5b6103c1838361080c565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b670de0b6b3a764000081565b600354600160a060020a0316331461062057600080fd5b600160a060020a03811615610658576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600081158061068b5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561069657600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b600160a060020a03808416600090815260026020908152604080832033845282528083205493861683526001909152812054909190610742908463ffffffff6108bc16565b600160a060020a038086166000908152600160205260408082209390935590871681522054610777908463ffffffff6108ce16565b600160a060020a0386166000908152600160205260409020556107a0818463ffffffff6108ce16565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b3360009081526001602052604081205461082c908363ffffffff6108ce16565b3360009081526001602052604080822092909255600160a060020a0385168152205461085e908363ffffffff6108bc16565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000828201838110156103c157600080fd5b600080838311156108de57600080fd5b50509003905600a165627a7a723058206229a2c6b9db049dcdc96493082b36928ab60cb8f99aefe440859e37579962a90029

Deployed Bytecode

0x6080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ea578063095ea7b3146101745780630b7abf77146101ac57806318160ddd146101d357806323b872dd146101e8578063313ce567146102125780633f4ba83a1461023d5780635c975abb1461025257806370a08231146102675780638456cb59146102885780638da5cb5b1461029d57806395d89b41146102ce578063a9059cbb146102e3578063dd62ed3e14610307578063e443348e1461032e578063f2fde38b14610343575b600080fd5b3480156100f657600080fd5b506100ff610366565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610139578181015183820152602001610121565b50505050905090810190601f1680156101665780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561018057600080fd5b50610198600160a060020a036004351660243561039d565b604080519115158252519081900360200190f35b3480156101b857600080fd5b506101c16103c8565b60408051918252519081900360200190f35b3480156101df57600080fd5b506101c16103d8565b3480156101f457600080fd5b50610198600160a060020a03600435811690602435166044356103de565b34801561021e57600080fd5b50610227610420565b6040805160ff9092168252519081900360200190f35b34801561024957600080fd5b50610198610425565b34801561025e57600080fd5b506101986104a4565b34801561027357600080fd5b506101c1600160a060020a03600435166104b4565b34801561029457600080fd5b506101986104cf565b3480156102a957600080fd5b506102b2610553565b60408051600160a060020a039092168252519081900360200190f35b3480156102da57600080fd5b506100ff610562565b3480156102ef57600080fd5b50610198600160a060020a0360043516602435610599565b34801561031357600080fd5b506101c1600160a060020a03600435811690602435166105d2565b34801561033a57600080fd5b506101c16105fd565b34801561034f57600080fd5b50610364600160a060020a0360043516610609565b005b60408051808201909152600b81527f536c61736820546f6b656e000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff16156103b757600080fd5b6103c1838361065b565b9392505050565b6b204fce5e3e2502611000000081565b60005481565b60035460009060a060020a900460ff16156103f857600080fd5b600160a060020a038316151561040d57600080fd5b6104188484846106fd565b949350505050565b601281565b600354600090600160a060020a0316331461043f57600080fd5b60035460a060020a900460ff16151561045757600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a150600190565b60035460a060020a900460ff1681565b600160a060020a031660009081526001602052604090205490565b600354600090600160a060020a031633146104e957600080fd5b60035460a060020a900460ff161561050057600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a150600190565b600354600160a060020a031681565b60408051808201909152600281527f5354000000000000000000000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff16156105b357600080fd5b600160a060020a03831615156105c857600080fd5b6103c1838361080c565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b670de0b6b3a764000081565b600354600160a060020a0316331461062057600080fd5b600160a060020a03811615610658576003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600081158061068b5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561069657600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b600160a060020a03808416600090815260026020908152604080832033845282528083205493861683526001909152812054909190610742908463ffffffff6108bc16565b600160a060020a038086166000908152600160205260408082209390935590871681522054610777908463ffffffff6108ce16565b600160a060020a0386166000908152600160205260409020556107a0818463ffffffff6108ce16565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b3360009081526001602052604081205461082c908363ffffffff6108ce16565b3360009081526001602052604080822092909255600160a060020a0385168152205461085e908363ffffffff6108bc16565b600160a060020a0384166000818152600160209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000828201838110156103c157600080fd5b600080838311156108de57600080fd5b50509003905600a165627a7a723058206229a2c6b9db049dcdc96493082b36928ab60cb8f99aefe440859e37579962a90029

Swarm Source

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