Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 27 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Migrate | 6256966 | 2239 days ago | IN | 0 ETH | 0.0001585 | ||||
Migrate | 6200646 | 2248 days ago | IN | 0 ETH | 0.0001585 | ||||
Migrate | 6005775 | 2281 days ago | IN | 0 ETH | 0.00006533 | ||||
Migrate | 6004726 | 2281 days ago | IN | 0 ETH | 0.00013066 | ||||
Migrate | 6004647 | 2281 days ago | IN | 0 ETH | 0.00010888 | ||||
Migrate | 6004625 | 2281 days ago | IN | 0 ETH | 0.00021777 | ||||
Migrate | 5991079 | 2284 days ago | IN | 0 ETH | 0.00006533 | ||||
Migrate | 5991079 | 2284 days ago | IN | 0 ETH | 0.00007925 | ||||
Migrate | 5987264 | 2284 days ago | IN | 0 ETH | 0.00021777 | ||||
Migrate | 5987249 | 2284 days ago | IN | 0 ETH | 0.00017421 | ||||
Migrate | 5987040 | 2284 days ago | IN | 0 ETH | 0.000317 | ||||
Migrate | 5986869 | 2284 days ago | IN | 0 ETH | 0.00017421 | ||||
Migrate | 5986829 | 2284 days ago | IN | 0 ETH | 0.00010888 | ||||
Migrate | 5986812 | 2284 days ago | IN | 0 ETH | 0.00010888 | ||||
Migrate | 5986757 | 2284 days ago | IN | 0 ETH | 0.00004355 | ||||
Migrate | 5986739 | 2284 days ago | IN | 0 ETH | 0.0001585 | ||||
Migrate | 5884739 | 2302 days ago | IN | 0 ETH | 0.00293228 | ||||
Migrate | 5845366 | 2308 days ago | IN | 0 ETH | 0.00007925 | ||||
Migrate | 5823541 | 2312 days ago | IN | 0 ETH | 0.00023775 | ||||
Migrate | 5803018 | 2316 days ago | IN | 0 ETH | 0.00007925 | ||||
Migrate | 5798546 | 2316 days ago | IN | 0 ETH | 0.0001585 | ||||
Migrate | 5794698 | 2317 days ago | IN | 0 ETH | 0.00055475 | ||||
Migrate | 5794387 | 2317 days ago | IN | 0 ETH | 0.0004755 | ||||
Migrate | 5794119 | 2317 days ago | IN | 0 ETH | 0.000634 | ||||
Migrate | 5793391 | 2317 days ago | IN | 0 ETH | 0.000634 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TokenMigration
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.