ETH Price: $2,673.01 (+9.96%)
Gas: 1 Gwei

Token

Blockchain Board Of Derivatives Token (BBD)
 

Overview

Max Total Supply

204,094,259.4512323222005323 BBD

Holders

1,138

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,452.48473556 BBD

Value
$0.00
0x454269c301b6ec5389d694fe5374044a65050b81
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

BBD token is a utility token used to pay transaction fees at BBOD - the world’s hybrid cryptocurrency derivatives exchange.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MigrationAgent

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
Yes with 200 runs

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

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) {
    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;
  }
}

/**
 * @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) public constant 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) public constant 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) public constant 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 {

  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) public constant 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;
  address private myAddress = this;

  /**
   * @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 Function must be, but empty.
   */
    function() payable public {
    }

  /**
   * @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 {
    require(newOwner != address(0));
    owner = newOwner;
    
  }

}

contract BBDMigration {
    function migrateFrom(address _from, uint256 _value) external;
}

/**
    Blockchain Board Of Derivatives Token.
 */
contract BBDToken is StandardToken, Ownable {

    // Metadata
    string public constant name = "Blockchain Board Of Derivatives Token";
    string public constant symbol = "BBD";
    uint256 public constant decimals = 18;
    string private constant version = '2.0.0';
    
    //Migration information
    address public migrationAgent;
    uint256 public totalMigrated;
    
    // Events
    event LogMigrate(address indexed _from, address indexed _to, uint256 _value);

    // Allow to migrate to next version of contract
    function migrate(address _beneficiary) onlyOwner external {
        require(migrationAgent != address(0x0));
        require(balances[_beneficiary] > 0);

        uint256 value = balances[_beneficiary];
        balances[msg.sender] = 0;
        totalSupply = totalSupply.sub(value);
        totalMigrated = totalMigrated.add(value);
        
        BBDMigration(migrationAgent).migrateFrom(_beneficiary, value);
        
        emit LogMigrate(_beneficiary, migrationAgent, value);
        
    }
    
    // Set migration Agent
    function setMigrationAgent(address _agent) onlyOwner external {

        migrationAgent = _agent;
    }
   
}

contract MigrationAgent is BBDToken {
    function migrateFrom(address _from, uint256 _value) external {
    
        require(msg.sender == address(0x5CA71Ea65ACB6293e71E62c41B720698b0Aa611C));
        balances[_from] = balances[_from].add(_value.mul(100));
        totalSupply = totalSupply.add(_value.mul(100));
    }
}

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":"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":"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":false,"inputs":[{"name":"_agent","type":"address"}],"name":"setMigrationAgent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"migrateFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"migrationAgent","outputs":[{"name":"","type":"address"}],"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":"totalMigrated","outputs":[{"name":"","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":"_beneficiary","type":"address"}],"name":"migrate","outputs":[],"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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"LogMigrate","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"}]

606060405260048054600160a060020a03308116600160a060020a031992831617909255600380543390931692909116919091179055610a0e806100446000396000f3006060604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100e7578063095ea7b31461017157806318160ddd146101a757806323b872dd146101cc578063313ce567146101f457806370a082311461020757806375e2ff65146102265780637a3130e3146102455780638328dbcd146102675780638da5cb5b1461029657806395a0f5eb146102a957806395d89b41146102bc578063a9059cbb146102cf578063ce5494bb146102f1578063dd62ed3e14610310578063f2fde38b14610335575b005b34156100f257600080fd5b6100fa610354565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561013657808201518382015260200161011e565b50505050905090810190601f1680156101635780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017c57600080fd5b610193600160a060020a03600435166024356103b4565b604051901515815260200160405180910390f35b34156101b257600080fd5b6101ba61045a565b60405190815260200160405180910390f35b34156101d757600080fd5b610193600160a060020a0360043581169060243516604435610460565b34156101ff57600080fd5b6101ba610573565b341561021257600080fd5b6101ba600160a060020a0360043516610578565b341561023157600080fd5b6100e5600160a060020a0360043516610593565b341561025057600080fd5b6100e5600160a060020a03600435166024356105dd565b341561027257600080fd5b61027a610682565b604051600160a060020a03909116815260200160405180910390f35b34156102a157600080fd5b61027a610691565b34156102b457600080fd5b6101ba6106a0565b34156102c757600080fd5b6100fa6106a6565b34156102da57600080fd5b610193600160a060020a03600435166024356106dd565b34156102fc57600080fd5b6100e5600160a060020a036004351661079c565b341561031b57600080fd5b6101ba600160a060020a036004358116906024351661090c565b341561034057600080fd5b6100e5600160a060020a0360043516610937565b606060405190810160405280602581526020017f426c6f636b636861696e20426f617264204f662044657269766174697665732081526020017f546f6b656e00000000000000000000000000000000000000000000000000000081525081565b60008115806103e65750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b15156103f157600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906104a7908463ffffffff61099616565b600160a060020a0380861660009081526001602052604080822093909355908716815220546104dc908463ffffffff6109ac16565b600160a060020a038616600090815260016020526040902055610505818463ffffffff6109ac16565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b601281565b600160a060020a031660009081526001602052604090205490565b60035433600160a060020a039081169116146105ae57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b33600160a060020a0316735ca71ea65acb6293e71e62c41b720698b0aa611c1461060657600080fd5b61063f61061a82606463ffffffff6109be16565b600160a060020a0384166000908152600160205260409020549063ffffffff61099616565b600160a060020a03831660009081526001602052604090205561067b61066c82606463ffffffff6109be16565b6000549063ffffffff61099616565b6000555050565b600554600160a060020a031681565b600354600160a060020a031681565b60065481565b60408051908101604052600381527f4242440000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a033316600090815260016020526040812054610706908363ffffffff6109ac16565b600160a060020a03338116600090815260016020526040808220939093559085168152205461073b908363ffffffff61099616565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60035460009033600160a060020a039081169116146107ba57600080fd5b600554600160a060020a031615156107d157600080fd5b600160a060020a038216600090815260016020526040812054116107f457600080fd5b50600160a060020a038082166000908152600160205260408082205433909316825281208190555461082c908263ffffffff6109ac16565b600055600654610842908263ffffffff61099616565b600655600554600160a060020a0316637a3130e383836040517c010000000000000000000000000000000000000000000000000000000063ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156108b457600080fd5b5af115156108c157600080fd5b5050600554600160a060020a03908116915083167ff0fee1f70845d356d6a3e0baa0944ce846437b6469ea89416dad2cd7067919a48360405190815260200160405180910390a35050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461095257600080fd5b600160a060020a038116151561096757600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000828201838110156109a557fe5b9392505050565b6000828211156109b857fe5b50900390565b60008282028315806109da57508284828115156109d757fe5b04145b15156109a557fe00a165627a7a7230582077cc7b69011eb80e53f0e34759b720ef3b68fff3d3438477b7f1d036c3d86fca0029

Deployed Bytecode

0x6060604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100e7578063095ea7b31461017157806318160ddd146101a757806323b872dd146101cc578063313ce567146101f457806370a082311461020757806375e2ff65146102265780637a3130e3146102455780638328dbcd146102675780638da5cb5b1461029657806395a0f5eb146102a957806395d89b41146102bc578063a9059cbb146102cf578063ce5494bb146102f1578063dd62ed3e14610310578063f2fde38b14610335575b005b34156100f257600080fd5b6100fa610354565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561013657808201518382015260200161011e565b50505050905090810190601f1680156101635780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561017c57600080fd5b610193600160a060020a03600435166024356103b4565b604051901515815260200160405180910390f35b34156101b257600080fd5b6101ba61045a565b60405190815260200160405180910390f35b34156101d757600080fd5b610193600160a060020a0360043581169060243516604435610460565b34156101ff57600080fd5b6101ba610573565b341561021257600080fd5b6101ba600160a060020a0360043516610578565b341561023157600080fd5b6100e5600160a060020a0360043516610593565b341561025057600080fd5b6100e5600160a060020a03600435166024356105dd565b341561027257600080fd5b61027a610682565b604051600160a060020a03909116815260200160405180910390f35b34156102a157600080fd5b61027a610691565b34156102b457600080fd5b6101ba6106a0565b34156102c757600080fd5b6100fa6106a6565b34156102da57600080fd5b610193600160a060020a03600435166024356106dd565b34156102fc57600080fd5b6100e5600160a060020a036004351661079c565b341561031b57600080fd5b6101ba600160a060020a036004358116906024351661090c565b341561034057600080fd5b6100e5600160a060020a0360043516610937565b606060405190810160405280602581526020017f426c6f636b636861696e20426f617264204f662044657269766174697665732081526020017f546f6b656e00000000000000000000000000000000000000000000000000000081525081565b60008115806103e65750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b15156103f157600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a0380841660009081526002602090815260408083203385168452825280832054938616835260019091528120549091906104a7908463ffffffff61099616565b600160a060020a0380861660009081526001602052604080822093909355908716815220546104dc908463ffffffff6109ac16565b600160a060020a038616600090815260016020526040902055610505818463ffffffff6109ac16565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b601281565b600160a060020a031660009081526001602052604090205490565b60035433600160a060020a039081169116146105ae57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b33600160a060020a0316735ca71ea65acb6293e71e62c41b720698b0aa611c1461060657600080fd5b61063f61061a82606463ffffffff6109be16565b600160a060020a0384166000908152600160205260409020549063ffffffff61099616565b600160a060020a03831660009081526001602052604090205561067b61066c82606463ffffffff6109be16565b6000549063ffffffff61099616565b6000555050565b600554600160a060020a031681565b600354600160a060020a031681565b60065481565b60408051908101604052600381527f4242440000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a033316600090815260016020526040812054610706908363ffffffff6109ac16565b600160a060020a03338116600090815260016020526040808220939093559085168152205461073b908363ffffffff61099616565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60035460009033600160a060020a039081169116146107ba57600080fd5b600554600160a060020a031615156107d157600080fd5b600160a060020a038216600090815260016020526040812054116107f457600080fd5b50600160a060020a038082166000908152600160205260408082205433909316825281208190555461082c908263ffffffff6109ac16565b600055600654610842908263ffffffff61099616565b600655600554600160a060020a0316637a3130e383836040517c010000000000000000000000000000000000000000000000000000000063ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b15156108b457600080fd5b5af115156108c157600080fd5b5050600554600160a060020a03908116915083167ff0fee1f70845d356d6a3e0baa0944ce846437b6469ea89416dad2cd7067919a48360405190815260200160405180910390a35050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60035433600160a060020a0390811691161461095257600080fd5b600160a060020a038116151561096757600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000828201838110156109a557fe5b9392505050565b6000828211156109b857fe5b50900390565b60008282028315806109da57508284828115156109d757fe5b04145b15156109a557fe00a165627a7a7230582077cc7b69011eb80e53f0e34759b720ef3b68fff3d3438477b7f1d036c3d86fca0029

Swarm Source

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