ETH Price: $2,644.92 (+0.28%)

Contract

0xf2867370cb077C1Fa0caC37759B1CB9dC66aCdd3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate62569662018-09-02 6:47:172239 days ago1535870837IN
0xf2867370...dC66aCdd3
0 ETH0.00015852
Migrate62006462018-08-23 18:41:442248 days ago1535049704IN
0xf2867370...dC66aCdd3
0 ETH0.00015852
Migrate60057752018-07-21 19:55:452281 days ago1532202945IN
0xf2867370...dC66aCdd3
0 ETH0.000065333
Migrate60047262018-07-21 15:48:512281 days ago1532188131IN
0xf2867370...dC66aCdd3
0 ETH0.000130666
Migrate60046472018-07-21 15:28:582281 days ago1532186938IN
0xf2867370...dC66aCdd3
0 ETH0.000108885
Migrate60046252018-07-21 15:24:012281 days ago1532186641IN
0xf2867370...dC66aCdd3
0 ETH0.0002177710
Migrate59910792018-07-19 8:11:212284 days ago1531987881IN
0xf2867370...dC66aCdd3
0 ETH0.000065333
Migrate59910792018-07-19 8:11:212284 days ago1531987881IN
0xf2867370...dC66aCdd3
0 ETH0.000079251
Migrate59872642018-07-18 16:16:252284 days ago1531930585IN
0xf2867370...dC66aCdd3
0 ETH0.0002177710
Migrate59872492018-07-18 16:11:572284 days ago1531930317IN
0xf2867370...dC66aCdd3
0 ETH0.000174218
Migrate59870402018-07-18 15:18:352284 days ago1531927115IN
0xf2867370...dC66aCdd3
0 ETH0.0003174
Migrate59868692018-07-18 14:34:222284 days ago1531924462IN
0xf2867370...dC66aCdd3
0 ETH0.000174218
Migrate59868292018-07-18 14:26:362284 days ago1531923996IN
0xf2867370...dC66aCdd3
0 ETH0.000108885
Migrate59868122018-07-18 14:22:152284 days ago1531923735IN
0xf2867370...dC66aCdd3
0 ETH0.000108885
Migrate59867572018-07-18 14:07:042284 days ago1531922824IN
0xf2867370...dC66aCdd3
0 ETH0.000043552
Migrate59867392018-07-18 14:04:202284 days ago1531922660IN
0xf2867370...dC66aCdd3
0 ETH0.00015852
Migrate58847392018-07-01 5:14:192302 days ago1530422059IN
0xf2867370...dC66aCdd3
0 ETH0.0029322837
Migrate58453662018-06-24 9:46:002308 days ago1529833560IN
0xf2867370...dC66aCdd3
0 ETH0.000079251
Migrate58235412018-06-20 16:44:252312 days ago1529513065IN
0xf2867370...dC66aCdd3
0 ETH0.000237753
Migrate58030182018-06-17 4:45:222316 days ago1529210722IN
0xf2867370...dC66aCdd3
0 ETH0.000079251
Migrate57985462018-06-16 10:39:522316 days ago1529145592IN
0xf2867370...dC66aCdd3
0 ETH0.00015852
Migrate57946982018-06-15 18:49:262317 days ago1529088566IN
0xf2867370...dC66aCdd3
0 ETH0.000554757
Migrate57943872018-06-15 17:33:162317 days ago1529083996IN
0xf2867370...dC66aCdd3
0 ETH0.00047556
Migrate57941192018-06-15 16:23:122317 days ago1529079792IN
0xf2867370...dC66aCdd3
0 ETH0.0006348
Migrate57933912018-06-15 13:17:122317 days ago1529068632IN
0xf2867370...dC66aCdd3
0 ETH0.0006348
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenMigration

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.4.24;

interface token {
    function transfer(address receiver, uint amount) external returns (bool);
    function balanceOf(address who) external returns (uint256);
}

interface AddressRegistry {
    function getAddr(string AddrName) external returns(address);
}

contract Registry {
    address public RegistryAddress;
    modifier onlyAdmin() {
        require(msg.sender == getAddress("admin"));
        _;
    }
    function getAddress(string AddressName) internal view returns(address) {
        AddressRegistry aRegistry = AddressRegistry(RegistryAddress);
        address realAddress = aRegistry.getAddr(AddressName);
        require(realAddress != address(0));
        return realAddress;
    }
}

contract TokenMigration is Registry {

    address public MTUV1;
    mapping(address => bool) public Migrated;

    constructor(address prevMTUAddress, address rAddress) public {
        MTUV1 = prevMTUAddress;
        RegistryAddress = rAddress;
    }

    function getMTUBal(address holder) internal view returns(uint balance) {
        token tokenFunctions = token(MTUV1);
        return tokenFunctions.balanceOf(holder);
    }

    function Migrate() public {
        require(!Migrated[msg.sender]);
        Migrated[msg.sender] = true;
        token tokenTransfer = token(getAddress("unit"));
        tokenTransfer.transfer(msg.sender, getMTUBal(msg.sender));
    }

    function SendEtherToAsset(uint256 weiAmt) onlyAdmin public {
        getAddress("asset").transfer(weiAmt);
    }

    function CollectERC20(address tokenAddress) onlyAdmin public {
        token tokenFunctions = token(tokenAddress);
        uint256 tokenBal = tokenFunctions.balanceOf(address(this));
        tokenFunctions.transfer(msg.sender, tokenBal);
    }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"MTUV1","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"Migrate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"RegistryAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"Migrated","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"weiAmt","type":"uint256"}],"name":"SendEtherToAsset","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tokenAddress","type":"address"}],"name":"CollectERC20","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"prevMTUAddress","type":"address"},{"name":"rAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

608060405234801561001057600080fd5b50604051604080610b0d833981018060405281019080805190602001909291908051906020019092919050505081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050610a3e806100cf6000396000f300608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630c3a96581461007d578063207aba24146100d457806358620daf146100eb578063a2e7361c14610142578063a55168ea1461019d578063cb8b4b83146101ca575b600080fd5b34801561008957600080fd5b5061009261020d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100e057600080fd5b506100e9610233565b005b3480156100f757600080fd5b50610100610410565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014e57600080fd5b50610183600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610435565b604051808215151515815260200191505060405180910390f35b3480156101a957600080fd5b506101c860048036038101908080359060200190929190505050610455565b005b3480156101d657600080fd5b5061020b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610553565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561028e57600080fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506103246040805190810160405280600481526020017f756e69740000000000000000000000000000000000000000000000000000000081525061078c565b90508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3361034c3361090c565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156103d157600080fd5b505af11580156103e5573d6000803e3d6000fd5b505050506040513d60208110156103fb57600080fd5b81019080805190602001909291905050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026020528060005260406000206000915054906101000a900460ff1681565b6104936040805190810160405280600581526020017f61646d696e00000000000000000000000000000000000000000000000000000081525061078c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156104cc57600080fd5b61050a6040805190810160405280600581526020017f617373657400000000000000000000000000000000000000000000000000000081525061078c565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561054f573d6000803e3d6000fd5b5050565b6000806105946040805190810160405280600581526020017f61646d696e00000000000000000000000000000000000000000000000000000081525061078c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105cd57600080fd5b8291508173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561066b57600080fd5b505af115801561067f573d6000803e3d6000fd5b505050506040513d602081101561069557600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b505050506040513d602081101561077557600080fd5b810190808051906020019092919050505050505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff1663d502db97856040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561083d578082015181840152602081019050610822565b50505050905090810190601f16801561086a5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561088957600080fd5b505af115801561089d573d6000803e3d6000fd5b505050506040513d60208110156108b357600080fd5b81019080805190602001909291905050509050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561090257600080fd5b8092505050919050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156109cf57600080fd5b505af11580156109e3573d6000803e3d6000fd5b505050506040513d60208110156109f957600080fd5b81019080805190602001909291905050509150509190505600a165627a7a723058202b22e828b59f6fdde8de2f86f40eeef297c6a4c78cf81119491466e0873747c200290000000000000000000000003c2e1591ec18352a19b7db08b29a140752cefd2b0000000000000000000000008836dc78baa218017dcc0cf6ced6669614b9dd9b

Deployed Bytecode

0x608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630c3a96581461007d578063207aba24146100d457806358620daf146100eb578063a2e7361c14610142578063a55168ea1461019d578063cb8b4b83146101ca575b600080fd5b34801561008957600080fd5b5061009261020d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100e057600080fd5b506100e9610233565b005b3480156100f757600080fd5b50610100610410565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561014e57600080fd5b50610183600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610435565b604051808215151515815260200191505060405180910390f35b3480156101a957600080fd5b506101c860048036038101908080359060200190929190505050610455565b005b3480156101d657600080fd5b5061020b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610553565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151561028e57600080fd5b6001600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506103246040805190810160405280600481526020017f756e69740000000000000000000000000000000000000000000000000000000081525061078c565b90508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3361034c3361090c565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156103d157600080fd5b505af11580156103e5573d6000803e3d6000fd5b505050506040513d60208110156103fb57600080fd5b81019080805190602001909291905050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026020528060005260406000206000915054906101000a900460ff1681565b6104936040805190810160405280600581526020017f61646d696e00000000000000000000000000000000000000000000000000000081525061078c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156104cc57600080fd5b61050a6040805190810160405280600581526020017f617373657400000000000000000000000000000000000000000000000000000081525061078c565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561054f573d6000803e3d6000fd5b5050565b6000806105946040805190810160405280600581526020017f61646d696e00000000000000000000000000000000000000000000000000000081525061078c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105cd57600080fd5b8291508173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561066b57600080fd5b505af115801561067f573d6000803e3d6000fd5b505050506040513d602081101561069557600080fd5b810190808051906020019092919050505090508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561074b57600080fd5b505af115801561075f573d6000803e3d6000fd5b505050506040513d602081101561077557600080fd5b810190808051906020019092919050505050505050565b60008060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508173ffffffffffffffffffffffffffffffffffffffff1663d502db97856040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561083d578082015181840152602081019050610822565b50505050905090810190601f16801561086a5780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561088957600080fd5b505af115801561089d573d6000803e3d6000fd5b505050506040513d60208110156108b357600080fd5b81019080805190602001909291905050509050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561090257600080fd5b8092505050919050565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156109cf57600080fd5b505af11580156109e3573d6000803e3d6000fd5b505050506040513d60208110156109f957600080fd5b81019080805190602001909291905050509150509190505600a165627a7a723058202b22e828b59f6fdde8de2f86f40eeef297c6a4c78cf81119491466e0873747c20029

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

0000000000000000000000003c2e1591ec18352a19b7db08b29a140752cefd2b0000000000000000000000008836dc78baa218017dcc0cf6ced6669614b9dd9b

-----Decoded View---------------
Arg [0] : prevMTUAddress (address): 0x3c2e1591EC18352a19b7dB08B29A140752cEFD2B
Arg [1] : rAddress (address): 0x8836Dc78baA218017dcc0Cf6cEd6669614b9dD9B

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003c2e1591ec18352a19b7db08b29a140752cefd2b
Arg [1] : 0000000000000000000000008836dc78baa218017dcc0cf6ced6669614b9dd9b


Swarm Source

bzzr://2b22e828b59f6fdde8de2f86f40eeef297c6a4c78cf81119491466e0873747c2

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.