ETH Price: $3,369.84 (-8.38%)

Token

DRIVR Network (DVR)
 

Overview

Max Total Supply

749,830,822.12774 DVR

Holders

100

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
3,750 DVR

Value
$0.00
0xe64508c1160426412475212f64d0c1f131e2ec77
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:
DRIVRNetworkToken

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.11;

/**
 * @title Crowdsale
 * @dev Crowdsale is a base contract for managing a token crowdsale.
 * Crowdsales have a start and end timestamps, where investors can make
 * token purchases and the crowdsale will assign them tokens based
 * on a token per ETH rate. Funds collected are forwarded to a wallet
 * as they arrive.
 */
 
 
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || 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 Ownable {
  address public owner;


  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  function Ownable() 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) onlyOwner public {
    require(newOwner != address(0));
    OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }

}

/**
 * @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 Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) tokenBalances;

  /**
  * @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) {
    require(tokenBalances[msg.sender]>=_value);
    tokenBalances[msg.sender] = tokenBalances[msg.sender].sub(_value);
    tokenBalances[_to] = tokenBalances[_to].add(_value);
    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 tokenBalances[_owner];
  }

}

contract DRIVRNetworkToken is BasicToken,Ownable {

   using SafeMath for uint256;
   
   string public constant name = "DRIVR Network";
   string public constant symbol = "DVR";
   uint256 public constant decimals = 18;

   uint256 public constant INITIAL_SUPPLY = 750000000;
  /**
   * @dev Contructor that gives msg.sender all of existing tokens.
   */
    function DRIVRNetworkToken(address wallet) public {
        owner = msg.sender;
        totalSupply = INITIAL_SUPPLY * 10 ** 18;
        tokenBalances[wallet] = totalSupply;   //Since we divided the token into 10^18 parts
    }

    function mint(address wallet, address buyer, uint256 tokenAmount) public onlyOwner {
      require(tokenBalances[wallet] >= tokenAmount);               // checks if it has enough to sell
      tokenBalances[buyer] = tokenBalances[buyer].add(tokenAmount);                  // adds the amount to buyer's balance
      tokenBalances[wallet] = tokenBalances[wallet].sub(tokenAmount);                        // subtracts amount from seller's balance
      Transfer(wallet, buyer, tokenAmount); 
      totalSupply = totalSupply.sub(tokenAmount);
    }
    function showMyTokenBalance(address addr) public view returns (uint tokenBalance) {
        tokenBalance = tokenBalances[addr];
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","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":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"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":"addr","type":"address"}],"name":"showMyTokenBalance","outputs":[{"name":"tokenBalance","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":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"wallet","type":"address"},{"name":"buyer","type":"address"},{"name":"tokenAmount","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"wallet","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"}]

6060604052341561000f57600080fd5b6040516020806106728339810160405280805160028054600160a060020a03338116600160a060020a031992831681179092169091179091556b026c62ad77dc602dae00000060008181559190921681526001602052604090205550506105f78061007b6000396000f3006060604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b357806318160ddd1461013d5780632ff2e9dc14610162578063313ce5671461017557806370a08231146101885780638da5cb5b146101a75780638fe476251461018857806395d89b41146101d6578063a9059cbb146101e9578063c6c3bbe61461021f578063f2fde38b14610249575b600080fd5b34156100be57600080fd5b6100c6610268565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101025780820151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014857600080fd5b61015061029f565b60405190815260200160405180910390f35b341561016d57600080fd5b6101506102a5565b341561018057600080fd5b6101506102ad565b341561019357600080fd5b610150600160a060020a03600435166102b2565b34156101b257600080fd5b6101ba6102cd565b604051600160a060020a03909116815260200160405180910390f35b34156101e157600080fd5b6100c66102dc565b34156101f457600080fd5b61020b600160a060020a0360043516602435610313565b604051901515815260200160405180910390f35b341561022a57600080fd5b610247600160a060020a03600435811690602435166044356103f8565b005b341561025457600080fd5b610247600160a060020a0360043516610508565b60408051908101604052600d81527f4452495652204e6574776f726b00000000000000000000000000000000000000602082015281565b60005481565b632cb4178081565b601281565b600160a060020a031660009081526001602052604090205490565b600254600160a060020a031681565b60408051908101604052600381527f4456520000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600160205260408120548290101561033957600080fd5b600160a060020a033316600090815260016020526040902054610362908363ffffffff6105a316565b600160a060020a033381166000908152600160205260408082209390935590851681522054610397908363ffffffff6105b516565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60025433600160a060020a0390811691161461041357600080fd5b600160a060020a0383166000908152600160205260409020548190101561043957600080fd5b600160a060020a038216600090815260016020526040902054610462908263ffffffff6105b516565b600160a060020a038084166000908152600160205260408082209390935590851681522054610497908263ffffffff6105a316565b600160a060020a038085166000818152600160205260409081902093909355908416917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3600054610500908263ffffffff6105a316565b600055505050565b60025433600160a060020a0390811691161461052357600080fd5b600160a060020a038116151561053857600080fd5b600254600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000828211156105af57fe5b50900390565b6000828201838110156105c457fe5b93925050505600a165627a7a72305820c46254580663066672456b2ba7dabe1be2416ee2a91390e227abd2f597d2e8100029000000000000000000000000b43ce355b21d9af19953fa20cb7e3b1946e4650f

Deployed Bytecode

0x6060604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100b357806318160ddd1461013d5780632ff2e9dc14610162578063313ce5671461017557806370a08231146101885780638da5cb5b146101a75780638fe476251461018857806395d89b41146101d6578063a9059cbb146101e9578063c6c3bbe61461021f578063f2fde38b14610249575b600080fd5b34156100be57600080fd5b6100c6610268565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101025780820151838201526020016100ea565b50505050905090810190601f16801561012f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014857600080fd5b61015061029f565b60405190815260200160405180910390f35b341561016d57600080fd5b6101506102a5565b341561018057600080fd5b6101506102ad565b341561019357600080fd5b610150600160a060020a03600435166102b2565b34156101b257600080fd5b6101ba6102cd565b604051600160a060020a03909116815260200160405180910390f35b34156101e157600080fd5b6100c66102dc565b34156101f457600080fd5b61020b600160a060020a0360043516602435610313565b604051901515815260200160405180910390f35b341561022a57600080fd5b610247600160a060020a03600435811690602435166044356103f8565b005b341561025457600080fd5b610247600160a060020a0360043516610508565b60408051908101604052600d81527f4452495652204e6574776f726b00000000000000000000000000000000000000602082015281565b60005481565b632cb4178081565b601281565b600160a060020a031660009081526001602052604090205490565b600254600160a060020a031681565b60408051908101604052600381527f4456520000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a0333166000908152600160205260408120548290101561033957600080fd5b600160a060020a033316600090815260016020526040902054610362908363ffffffff6105a316565b600160a060020a033381166000908152600160205260408082209390935590851681522054610397908363ffffffff6105b516565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60025433600160a060020a0390811691161461041357600080fd5b600160a060020a0383166000908152600160205260409020548190101561043957600080fd5b600160a060020a038216600090815260016020526040902054610462908263ffffffff6105b516565b600160a060020a038084166000908152600160205260408082209390935590851681522054610497908263ffffffff6105a316565b600160a060020a038085166000818152600160205260409081902093909355908416917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a3600054610500908263ffffffff6105a316565b600055505050565b60025433600160a060020a0390811691161461052357600080fd5b600160a060020a038116151561053857600080fd5b600254600160a060020a0380831691167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000828211156105af57fe5b50900390565b6000828201838110156105c457fe5b93925050505600a165627a7a72305820c46254580663066672456b2ba7dabe1be2416ee2a91390e227abd2f597d2e8100029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000b43ce355b21d9af19953fa20cb7e3b1946e4650f

-----Decoded View---------------
Arg [0] : wallet (address): 0xB43Ce355b21d9af19953Fa20cb7E3B1946E4650f

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b43ce355b21d9af19953fa20cb7e3b1946e4650f


Swarm Source

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