Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0x741F58cd68D24f361Cc0ee0D3aaf7DF2bf16132E
Balance 0 ETH
Nonce 1
Code Size 5353 bytes
Indexed Transactions 0 (1 on-chain, 0.7% indexed)
External Etherscan · Sourcify

Contract Bytecode

5353 bytes
0x6080604052600436106100f1576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100f6578063095ea7b31461018657806318160ddd146101eb5780631ca8b6cb1461021657806323b872dd1461024157806327e235e3146102c6578063313ce5671461031d57806342966c681461034e5780636f64ccf51461037b57806370a08231146103d25780638da5cb5b1461042957806395d89b4114610480578063a9059cbb14610510578063d55ec69714610575578063dd62ed3e1461058c578063f2fde38b14610603578063fa20e77d14610646575b600080fd5b34801561010257600080fd5b5061010b610671565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561014b578082015181840152602081019050610130565b50505050905090810190601f1680156101785780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019257600080fd5b506101d1600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506106aa565b604051808215151515815260200191505060405180910390f35b3480156101f757600080fd5b50610200610802565b6040518082815260200191505060405180910390f35b34801561022257600080fd5b5061022b610819565b6040518082815260200191505060405180910390f35b34801561024d57600080fd5b506102ac600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610828565b604051808215151515815260200191505060405180910390f35b3480156102d257600080fd5b50610307600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109ee565b6040518082815260200191505060405180910390f35b34801561032957600080fd5b50610332610a06565b604051808260ff1660ff16815260200191505060405180910390f35b34801561035a57600080fd5b5061037960048036038101908080359060200190929190505050610a0b565b005b34801561038757600080fd5b506103bc600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b6c565b6040518082815260200191505060405180910390f35b3480156103de57600080fd5b50610413600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bb5565b6040518082815260200191505060405180910390f35b34801561043557600080fd5b5061043e610bfe565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561048c57600080fd5b50610495610c23565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104d55780820151818401526020810190506104ba565b50505050905090810190601f1680156105025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561051c57600080fd5b5061055b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c5c565b604051808215151515815260200191505060405180910390f35b34801561058157600080fd5b5061058a610c87565b005b34801561059857600080fd5b506105ed600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061101a565b6040518082815260200191505060405180910390f35b34801561060f57600080fd5b50610644600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110a1565b005b34801561065257600080fd5b5061065b61117b565b6040518082815260200191505060405180910390f35b6040805190810160405280600981526020017f426c6f636b6f6e6978000000000000000000000000000000000000000000000081525081565b60006106b583611181565b15156106c057600080fd5b81601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015156107f75781601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a3600190506107fc565b600090505b92915050565b60006012546a085914ef4523c8d84f000003905090565b6a085914ef4523c8d84f000081565b600061083384611181565b151561083e57600080fd5b601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156108c957600080fd5b61095882601460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111e490919063ffffffff16565b601460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109e38484846111fd565b600190509392505050565b60136020528060005260406000206000915090505481565b601281565b80601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151515610a5957600080fd5b610aab81601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111e490919063ffffffff16565b601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550806012600082825401925050819055507fe12923b90d8a6ca7dc57994322d2afba0be75f98e97e2b892fd34c0d7c6229693382604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a150565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600381526020017f424454000000000000000000000000000000000000000000000000000000000081525081565b6000610c6733611181565b1515610c7257600080fd5b610c7d3384846111fd565b6001905092915050565b6000600f544211151515610c9a57600080fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b158015610d5757600080fd5b505af1158015610d6b573d6000803e3d6000fd5b505050506040513d6020811015610d8157600080fd5b81019080805190602001909291905050509050600081111515610da357600080fd5b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610ebe57600080fd5b505af1158015610ed2573d6000803e3d6000fd5b505050506040513d6020811015610ee857600080fd5b81019080805190602001909291905050505080601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055503373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a37f5887ab9161c3be2fe962b73e068a9f29082efb6daf2bfcbd3f064bc34d1ef1b73382604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a150565b6000601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110fc57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561113857600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60125481565b600080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111156111d95780421191506111de565b600191505b50919050565b60008282111515156111f257fe5b818303905092915050565b60008273ffffffffffffffffffffffffffffffffffffffff161415151561122357600080fd5b80601360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015151561127157600080fd5b601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481601360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054011115156112ff57600080fd5b61135181601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546111e490919063ffffffff16565b601360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506113e681601360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461149390919063ffffffff16565b601360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b60008082840190508381101580156114ab5750828110155b15156114b357fe5b80915050929150505600a165627a7a723058204230356494fdf773b05559f73591d400f2b89a06b4819e12295a7d7ba35456b50029

Verified Source Code Partial Match

Compiler: v0.4.24+commit.e67f0147 EVM: byzantium Optimization: No
BlockonixToken.sol 300 lines
pragma solidity ^0.4.24;

/*
*
*  Blockonix Tokens are governed by the Terms & Conditions separately notified to each existing token holder
*  of Bitindia, and available on https://blockonix.com and https://blockonix.com/tokenswap
*
*/


/**
 *  Standard Interface for ERC20 Contract
 */
contract IERC20 {
    function totalSupply() public constant returns (uint _totalSupply);
    function balanceOf(address _owner) public constant returns (uint balance);
    function transfer(address _to, uint _value) public returns (bool success);
    function transferFrom(address _from, address _to, uint _value) public returns (bool success);
    function approve(address _spender, uint _value) public returns (bool success);
    function allowance(address _owner, address _spender) constant public returns (uint remaining);
    event Transfer(address indexed _from, address indexed _to, uint _value);
    event Approval(address indexed _owner, address indexed _spender, uint _value);
}


/**
 * Checking overflows for various operations
 */
library SafeMathLib {

/**
* Issue: Change to internal pure
**/
  function minus(uint a, uint b) internal pure returns (uint) {
    assert(b <= a);
    return a - b;
  }

/**
* Issue: Change to internal pure
**/
  function plus(uint a, uint b) internal pure returns (uint) {
    uint c = a + b;
    assert(c>=a && c>=b);
    return c;
  }

}

/**
 * @title Ownable
 * @notice 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;

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

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

  /**
   * @notice 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));
    owner = newOwner;
  }
    
}

contract HasAddresses {
    address founder1FirstLockup = 0xfC866793142059C79E924d537C26E5E68a3d0CB4;
    address founder1SecondLockup = 0xa5c5EdA285866a89fbe9434BF85BC7249Fa98D45;
    address founder1ThirdLockup = 0xBE2D892D27309EE50D53aa3460fB21A2762625d6;
    
    address founder2FirstLockup = 0x7aeFB5F308C60D6fD9f9D79D6BEb32e2BbEf8F3C;
    address founder2SecondLockup = 0x9d92785510fadcBA9D0372e96882441536d6876a;
    address founder2ThirdLockup = 0x0e0B9943Ea00393B596089631D520bF1489d4d2E;

    address founder3FirstLockup = 0x8E06EdC382Dd2Bf3F2C36f7e2261Af2c7Eb84835;
    address founder3SecondLockup = 0x6A5AebCd6fA054ff4D10c51bABce17F189A9998a;
    address founder3ThirdLockup = 0xe10E613Be00a6383Dde52152Bc33007E5669e861;

}


contract VestingPeriods{
    uint firstLockup = 1544486400; // Human time (GMT): Tuesday, 11 December 2018 00:00:00  
    uint secondLockup = 1560211200; // Human time (GMT): Tuesday, 11 June 2019 00:00:00
    uint thirdLockup = 1576022400; // Human time (GMT): Wednesday, 11 December 2019 00:00:00
}


contract Vestable {

    mapping(address => uint) vestedAddresses ;    // Addresses vested till date
    bool isVestingOver = false;
    event AddVestingAddress(address vestingAddress, uint maturityTimestamp);

    function addVestingAddress(address vestingAddress, uint maturityTimestamp) internal{
        vestedAddresses[vestingAddress] = maturityTimestamp;
        emit AddVestingAddress(vestingAddress, maturityTimestamp);
    }

    function checkVestingTimestamp(address testAddress) public view returns(uint){
        return vestedAddresses[testAddress];
    }

    function checkVestingCondition(address sender) internal view returns(bool) {
        uint vestingTimestamp = vestedAddresses[sender];
        if(vestingTimestamp > 0) {
            return (now > vestingTimestamp);
        }
        else {
            return true;
        }
    }

}

contract IsUpgradable{
    address oldTokenAddress = 0x420335D3DEeF2D5b87524Ff9D0fB441F71EA621f;
    uint upgradeDeadline = 1543536000;
    address oldTokenBurnAddress = 0x30E055F7C16B753dbF77B57f38782C11A9f1C653;
    IERC20 oldToken = IERC20(oldTokenAddress);


}

/**
 * @title BlockonixToken Token
 * @notice The ERC20 Token.
 */
contract BlockonixToken is IERC20, Ownable, Vestable, HasAddresses, VestingPeriods, IsUpgradable {
    
    using SafeMathLib for uint256;
    
    uint256 public constant totalTokenSupply = 1009208335 * 10**16;    // Total Supply:10,092,083.35

    uint256 public burntTokens;

    string public constant name = "Blockonix";    // Blockonix
    string public constant symbol = "BDT";  // BDT
    uint8 public constant decimals = 18;            

    mapping (address => uint256) public balances;
    mapping(address => mapping(address => uint256)) approved;
    
    event Upgraded(address _owner, uint256 amount); 
    constructor() public {
        
        uint256 lockedTokenPerAddress = 280335648611111000000000;   // Total Founder Tokens(LOCKED): 2,523,020.8375, divided equally in 9 chunks
        balances[founder1FirstLockup] = lockedTokenPerAddress;
        balances[founder2FirstLockup] = lockedTokenPerAddress;
        balances[founder3FirstLockup] = lockedTokenPerAddress;
        balances[founder1SecondLockup] = lockedTokenPerAddress;
        balances[founder2SecondLockup] = lockedTokenPerAddress;
        balances[founder3SecondLockup] = lockedTokenPerAddress;
        balances[founder1ThirdLockup] = lockedTokenPerAddress;
        balances[founder2ThirdLockup] = lockedTokenPerAddress;
        balances[founder3ThirdLockup] = lockedTokenPerAddress;

        emit Transfer(address(this), founder1FirstLockup, lockedTokenPerAddress);
        emit Transfer(address(this), founder2FirstLockup, lockedTokenPerAddress);
        emit Transfer(address(this), founder3FirstLockup, lockedTokenPerAddress);
        
        emit Transfer(address(this), founder1SecondLockup, lockedTokenPerAddress);
        emit Transfer(address(this), founder2SecondLockup, lockedTokenPerAddress);
        emit Transfer(address(this), founder3SecondLockup, lockedTokenPerAddress);

        emit Transfer(address(this), founder1ThirdLockup, lockedTokenPerAddress);
        emit Transfer(address(this), founder2ThirdLockup, lockedTokenPerAddress);
        emit Transfer(address(this), founder3ThirdLockup, lockedTokenPerAddress);


        addVestingAddress(founder1FirstLockup, firstLockup);
        addVestingAddress(founder2FirstLockup, firstLockup);
        addVestingAddress(founder3FirstLockup, firstLockup);

        addVestingAddress(founder1SecondLockup, secondLockup);
        addVestingAddress(founder2SecondLockup, secondLockup);
        addVestingAddress(founder3SecondLockup, secondLockup);

        addVestingAddress(founder1ThirdLockup, thirdLockup);
        addVestingAddress(founder2ThirdLockup, thirdLockup);
        addVestingAddress(founder3ThirdLockup, thirdLockup);

    }

    function burn(uint256 _value) public {
        require (balances[msg.sender] >= _value);                 // Check if the sender has enough
        balances[msg.sender] = balances[msg.sender].minus(_value);
        burntTokens += _value;
        emit BurnToken(msg.sender, _value);
    } 

    
    function totalSupply() view public returns (uint256 _totalSupply) {
        return totalTokenSupply - burntTokens;
    }
    
    function balanceOf(address _owner) view public returns (uint256 balance) {
        return balances[_owner];
    }
    
    /* Internal transfer, only can be called by this contract */
    function _transfer(address _from, address _to, uint256 _value) internal {
        require (_to != 0x0);                               // Prevent transfer to 0x0 address. Use burn() instead
        require (balances[_from] >= _value);                 // Check if the sender has enough
        require (balances[_to] + _value > balances[_to]);   // Check for overflows
        balances[_from] = balances[_from].minus(_value);    // Subtract from the sender
        balances[_to] = balances[_to].plus(_value);         // Add the same to the recipient
        emit Transfer(_from, _to, _value);
    }

    /**
     * @notice Send `_value` tokens to `_to` from your account
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transfer(address _to, uint256 _value) public returns (bool success){
        require(checkVestingCondition(msg.sender));
        _transfer(msg.sender, _to, _value);
        return true;
    }
    
    /**
     * @notice Send `_value` tokens to `_to` on behalf of `_from`
     * @param _from The address of the sender
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(checkVestingCondition(_from));
        require (_value <= approved[_from][msg.sender]);     // Check allowance
        approved[_from][msg.sender] = approved[_from][msg.sender].minus(_value);
        _transfer(_from, _to, _value);
        return true;
    }
    
    /**
     * @notice Approve `_value` tokens for `_spender`
     * @param _spender The address of the sender
     * @param _value the amount to send
     */
    function approve(address _spender, uint256 _value) public returns (bool success) {
        require(checkVestingCondition(_spender));
        if(balances[msg.sender] >= _value) {
            approved[msg.sender][_spender] = _value;
            emit Approval(msg.sender, _spender, _value);
            return true;
        }
        return false;
    }
        
    /**
     * @notice Check `_value` tokens allowed to `_spender` by `_owner`
     * @param _owner The address of the Owner
     * @param _spender The address of the Spender
     */
    function allowance(address _owner, address _spender) view public returns (uint256 remaining) {
        return approved[_owner][_spender];
    }
        
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);

    event BurnToken(address _owner, uint256 _value);
    
     /**
     * Upgrade function, requires the owner to first approve tokens equal to their old token balance to this address 
     *
     */
    function upgrade() external {
        require(now <=upgradeDeadline);
        uint256 balance = oldToken.balanceOf(msg.sender);
        require(balance>0);
        oldToken.transferFrom(msg.sender, oldTokenBurnAddress, balance);
        balances[msg.sender] += balance;
        emit Transfer(this, msg.sender, balance);
        emit Upgraded(msg.sender, balance);
    }

}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
balances 0x27e235e3 → uint256
burntTokens 0xfa20e77d → uint256
checkVestingTimestamp 0x6f64ccf5 → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
totalTokenSupply 0x1ca8b6cb → uint256

Write Contract 6 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
burn 0x42966c68
uint256 _value
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
upgrade 0xd55ec697
No parameters

Recent Transactions

This address has 1 on-chain transactions, but only 0.7% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →