Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x103c3A209da59d3E7C4A89307e66521e081CFDF0
Balance 0 ETH
Nonce 1
Code Size 3130 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

3130 bytes
0x606060405236156101045763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610109578063095ea7b31461019457806318160ddd146101ca57806323b872dd146101ef57806326316e581461022b578063313ce5671461024c57806333eeb1471461027157806340c10f1914610298578063454b0608146102bc5780635d452201146102d4578063676d2e62146103035780636a28f0001461033257806370a082311461034757806375e2ff65146103785780638328dbcd1461039957806395a0f5eb146103c857806395d89b41146103ed578063a9059cbb14610478578063dd62ed3e146104ae575b600080fd5b341561011457600080fd5b61011c6104e5565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101595780820151818401525b602001610140565b50505050905090810190601f1680156101865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019f57600080fd5b6101b6600160a060020a036004351660243561051c565b604051901515815260200160405180910390f35b34156101d557600080fd5b6101dd610549565b60405190815260200160405180910390f35b34156101fa57600080fd5b6101b6600160a060020a036004358116906024351660443561054f565b604051901515815260200160405180910390f35b341561023657600080fd5b61024a600160a060020a036004351661057e565b005b341561025757600080fd5b6101dd6105da565b60405190815260200160405180910390f35b341561027c57600080fd5b6101b66105df565b604051901515815260200160405180910390f35b34156102a357600080fd5b61024a600160a060020a03600435166024356105ef565b005b34156102c757600080fd5b61024a600435610691565b005b34156102df57600080fd5b6102e76107d1565b604051600160a060020a03909116815260200160405180910390f35b341561030e57600080fd5b6102e76107e0565b604051600160a060020a03909116815260200160405180910390f35b341561033d57600080fd5b61024a6107ef565b005b341561035257600080fd5b6101dd600160a060020a036004351661082b565b60405190815260200160405180910390f35b341561038357600080fd5b61024a600160a060020a036004351661084a565b005b34156103a457600080fd5b6102e76108a7565b604051600160a060020a03909116815260200160405180910390f35b34156103d357600080fd5b6101dd6108b6565b60405190815260200160405180910390f35b34156103f857600080fd5b61011c6108bc565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101595780820151818401525b602001610140565b50505050905090810190601f1680156101865780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561048357600080fd5b6101b6600160a060020a03600435166024356108f3565b604051901515815260200160405180910390f35b34156104b957600080fd5b6101dd600160a060020a0360043581169060243516610934565b60405190815260200160405180910390f35b60408051908101604052601481527f47656e6573697320566973696f6e20546f6b656e000000000000000000000000602082015281565b60035460009060a060020a900460ff161561053657600080fd5b6105408383610961565b90505b92915050565b60005481565b60035460009060a060020a900460ff161561056957600080fd5b610574848484610a08565b90505b9392505050565b60045433600160a060020a0390811691161461059957600080fd5b600160a060020a03811615156105ae57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b601281565b60035460a060020a900460ff1681565b60035433600160a060020a0390811691161461060a57600080fd5b6000811161061757600080fd5b6000546a24655cc78b38d7ac000000908201111561063457600080fd5b600160a060020a0382166000818152600160205260408082208054850190558154840182557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a35b5050565b600554600160a060020a031615156106a857600080fd5b600081116106b557600080fd5b600160a060020a0333166000908152600160205260409020548111156106da57600080fd5b33600160a060020a03818116600090815260016020526040808220805486900390558154859003909155600680548501905560055490911691637a3130e3918490517c010000000000000000000000000000000000000000000000000000000063ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561077557600080fd5b6102c65a03f1151561078657600080fd5b5050600554600160a060020a03908116915033167f18df02dcc52b9c494f391df09661519c0069bd8540141946280399408205ca1a8360405190815260200160405180910390a35b50565b600354600160a060020a031681565b600454600160a060020a031681565b60035433600160a060020a0390811691161461080a57600080fd5b6003805474ff0000000000000000000000000000000000000000191690555b565b600160a060020a0381166000908152600160205260409020545b919050565b600554600160a060020a03161561086057600080fd5b60045433600160a060020a0390811691161461087b57600080fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600554600160a060020a031681565b60065481565b60408051908101604052600381527f4756540000000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561090a57600080fd5b60035460a060020a900460ff161561092157600080fd5b6105408383610b1d565b90505b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b60008115806109935750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561099e57600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b600160a060020a038084166000908152600260209081526040808320338516845282528083205493861683526001909152812054909190610a4f908463ffffffff610bdd16565b600160a060020a038086166000908152600160205260408082209390935590871681522054610a84908463ffffffff610bf716565b600160a060020a038616600090815260016020526040902055610aad818463ffffffff610bf716565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b600160a060020a033316600090815260016020526040812054610b46908363ffffffff610bf716565b600160a060020a033381166000908152600160205260408082209390935590851681522054610b7b908363ffffffff610bdd16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600082820183811015610bec57fe5b8091505b5092915050565b600082821115610c0357fe5b508082035b929150505600a165627a7a723058202c49f12155be3664a0f335285a4c862a018889caefeeb2e5d2d980edfc29dec00029

Verified Source Code Partial Match

Compiler: v0.4.16+commit.d7661dd9 Optimization: Yes (200 runs)
GVToken.sol 245 lines
pragma solidity ^0.4.11;

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal constant returns (uint256) {
    uint256 c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal constant 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 constant returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal constant 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) constant returns (uint256);
  function transfer(address to, uint256 value) 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) 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) returns (bool) {
    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_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 returns (uint256 balance) {
    return balances[_owner];
  }

}


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

/**
 * @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) returns (bool) {
    var _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);
    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) 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;
    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 returns (uint256 remaining) {
    return allowed[_owner][_spender];
  }
}


// Migration Agent interface
contract MigrationAgent {
    function migrateFrom(address _from, uint _value);
}

contract GVToken is StandardToken {
    
    // Constants
    string public constant name = "Genesis Vision Token";
    string public constant symbol = "GVT";
    uint   public constant decimals = 18;
    uint   constant TOKEN_LIMIT = 44 * 1e6 * 1e18; 
    
    address public ico;

    // GVT transfers are blocked until ICO is finished.
    bool public isFrozen = true;

    // Token migration variables
    address public migrationMaster;
    address public migrationAgent;
    uint public totalMigrated;

    event Migrate(address indexed _from, address indexed _to, uint _value);

    // Constructor
    function GVToken(address _ico, address _migrationMaster) {
        require(_ico != 0);
        require(_migrationMaster != 0);
        ico = _ico;
        migrationMaster = _migrationMaster;
    }

    // Create tokens
    function mint(address holder, uint value) {
        require(msg.sender == ico);
        require(value > 0);
        require(totalSupply + value <= TOKEN_LIMIT);

        balances[holder] += value;
        totalSupply += value;
        Transfer(0x0, holder, value);
    }

    // Allow token transfer.
    function unfreeze() {
        require(msg.sender == ico);
        isFrozen = false;
    }

    // ERC20 functions
    // =========================

    function transfer(address _to, uint _value) public returns (bool) {
        require(_to != address(0));
        require(!isFrozen);
        return super.transfer(_to, _value);
    }

    function transferFrom(address _from, address _to, uint _value) public returns (bool) {
        require(!isFrozen);
        return super.transferFrom(_from, _to, _value);
    }

    function approve(address _spender, uint _value) public returns (bool) {
        require(!isFrozen);
        return super.approve(_spender, _value);
    }

    // Token migration
    function migrate(uint value) external {
        require(migrationAgent != 0);
        require(value > 0);
        require(value <= balances[msg.sender]);

        balances[msg.sender] -= value;
        totalSupply -= value;
        totalMigrated += value;
        MigrationAgent(migrationAgent).migrateFrom(msg.sender, value);
        Migrate(msg.sender, migrationAgent, value);
    }

    // Set address of migration contract
    function setMigrationAgent(address _agent) external {
        require(migrationAgent == 0);
        require(msg.sender == migrationMaster);
        migrationAgent = _agent;
    }

    function setMigrationMaster(address _master) external {
        require(msg.sender == migrationMaster);
        require(_master != 0);
        migrationMaster = _master;
    }
}

Read Contract

allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint256
ico 0x5d452201 → address
isFrozen 0x33eeb147 → bool
migrationAgent 0x8328dbcd → address
migrationMaster 0x676d2e62 → address
name 0x06fdde03 → string
symbol 0x95d89b41 → string
totalMigrated 0x95a0f5eb → uint256
totalSupply 0x18160ddd → uint256

Write Contract 8 functions

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

approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
migrate 0x454b0608
uint256 value
mint 0x40c10f19
address holder
uint256 value
setMigrationAgent 0x75e2ff65
address _agent
setMigrationMaster 0x26316e58
address _master
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
unfreeze 0x6a28f000
No parameters

Token Balances (1)

View Transfers →
USDT 0

Recent Transactions

No transactions found for this address