More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 415 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Migrate | 16075823 | 662 days ago | IN | 0 ETH | 0.00078097 | ||||
Migrate | 15595235 | 729 days ago | IN | 0 ETH | 0.00037403 | ||||
Migrate | 15190220 | 792 days ago | IN | 0 ETH | 0.0003547 | ||||
Migrate | 15190219 | 792 days ago | IN | 0 ETH | 0.00045272 | ||||
Migrate | 14988908 | 825 days ago | IN | 0 ETH | 0.00102647 | ||||
Migrate | 14630277 | 884 days ago | IN | 0 ETH | 0.00504314 | ||||
Migrate | 14567218 | 894 days ago | IN | 0 ETH | 0.00365854 | ||||
Migrate | 14496371 | 905 days ago | IN | 0 ETH | 0.00466279 | ||||
Migrate | 14471361 | 909 days ago | IN | 0 ETH | 0.00273754 | ||||
Migrate | 14444991 | 913 days ago | IN | 0 ETH | 0.00339945 | ||||
Migrate | 14431653 | 915 days ago | IN | 0 ETH | 0.00335962 | ||||
Migrate | 14399505 | 920 days ago | IN | 0 ETH | 0.00347305 | ||||
Migrate | 14387703 | 922 days ago | IN | 0 ETH | 0.0011864 | ||||
Migrate | 14384512 | 922 days ago | IN | 0 ETH | 0.00134061 | ||||
Migrate | 14355307 | 927 days ago | IN | 0 ETH | 0.00205814 | ||||
Migrate | 14351645 | 927 days ago | IN | 0 ETH | 0.00249655 | ||||
Migrate | 14347772 | 928 days ago | IN | 0 ETH | 0.00161695 | ||||
Migrate | 14333251 | 930 days ago | IN | 0 ETH | 0.0015746 | ||||
Migrate | 14325783 | 931 days ago | IN | 0 ETH | 0.00259995 | ||||
Migrate | 14317814 | 932 days ago | IN | 0 ETH | 0.00162415 | ||||
Migrate | 14312758 | 933 days ago | IN | 0 ETH | 0.00285966 | ||||
Migrate | 14305942 | 934 days ago | IN | 0 ETH | 0.00218838 | ||||
Migrate | 14294636 | 936 days ago | IN | 0 ETH | 0.00180462 | ||||
Migrate | 14281047 | 938 days ago | IN | 0 ETH | 0.00176957 | ||||
Migrate | 14274805 | 939 days ago | IN | 0 ETH | 0.00303386 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TokenMigrator
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.6; import "IERC20.sol"; import "SafeOwnable.sol"; import "SafeERC20.sol"; contract TokenMigrator is SafeOwnable { using SafeERC20 for IERC20; IERC20 public immutable oldToken; IERC20 public immutable newToken; address public treasury; constructor( IERC20 _oldToken, IERC20 _newToken, address _treasury ) { oldToken = _oldToken; newToken = _newToken; treasury = _treasury; } function migrate(uint _amount) external { IERC20(oldToken).safeTransferFrom(msg.sender, address(this), _amount); IERC20(newToken).safeTransfer(msg.sender, _amount); } function recall(address _token, uint _amount) external onlyOwner { IERC20(_token).safeTransfer(treasury, _amount); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.7.0; interface IERC20 { function totalSupply() external view returns (uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint256 amount) external returns(bool); function allowance(address owner, address spender) external view returns(uint); function decimals() external view returns(uint8); function approve(address spender, uint amount) external returns(bool); function transferFrom(address sender, address recipient, uint amount) external returns(bool); }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.6; import "IOwnable.sol"; contract SafeOwnable is IOwnable { uint public constant RENOUNCE_TIMEOUT = 1 hours; address public override owner; address public pendingOwner; uint public renouncedAt; event OwnershipTransferInitiated(address indexed previousOwner, address indexed newOwner); event OwnershipTransferConfirmed(address indexed previousOwner, address indexed newOwner); constructor() { owner = msg.sender; emit OwnershipTransferConfirmed(address(0), msg.sender); } modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } function isOwner() public view returns (bool) { return msg.sender == owner; } function transferOwnership(address _newOwner) external override onlyOwner { require(_newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferInitiated(owner, _newOwner); pendingOwner = _newOwner; } function acceptOwnership() external override { require(msg.sender == pendingOwner, "Ownable: caller is not pending owner"); emit OwnershipTransferConfirmed(msg.sender, pendingOwner); owner = pendingOwner; pendingOwner = address(0); } function initiateRenounceOwnership() external onlyOwner { require(renouncedAt == 0, "Ownable: already initiated"); renouncedAt = block.timestamp; } function acceptRenounceOwnership() external onlyOwner { require(renouncedAt > 0, "Ownable: not initiated"); require(block.timestamp - renouncedAt > RENOUNCE_TIMEOUT, "Ownable: too early"); owner = address(0); pendingOwner = address(0); renouncedAt = 0; } function cancelRenounceOwnership() external onlyOwner { require(renouncedAt > 0, "Ownable: not initiated"); renouncedAt = 0; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.6; interface IOwnable { function owner() external view returns(address); function transferOwnership(address _newOwner) external; function acceptOwnership() external; }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; import "IERC20.sol"; import "SafeMath.sol"; import "AddressLibrary.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using AddressLibrary for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2; /** * @dev Collection of functions related to the address type */ library AddressLibrary { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_oldToken","type":"address"},{"internalType":"contract IERC20","name":"_newToken","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferConfirmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferInitiated","type":"event"},{"inputs":[],"name":"RENOUNCE_TIMEOUT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"acceptRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initiateRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"newToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renouncedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b50604051610c6e380380610c6e83398101604081905261002f916100ae565b600080546001600160a01b0319163390811782556040519091907f646fe5eeb20d96ea45a9caafcb508854a2fb5660885ced7772e12a633c974571908290a3606092831b6001600160601b03199081166080529190921b1660a052600380546001600160a01b0319166001600160a01b03909216919091179055610113565b6000806000606084860312156100c357600080fd5b83516100ce816100fb565b60208501519093506100df816100fb565b60408501519092506100f0816100fb565b809150509250925092565b6001600160a01b038116811461011057600080fd5b50565b60805160601c60a05160601c610b2261014c600039600081816101cf01526102ca0152600081816101a001526102950152610b226000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638f32d59b11610097578063dc6d621411610066578063dc6d6214146101f1578063e30c397814610208578063efe1d1301461021b578063f2fde38b1461022457600080fd5b80638f32d59b1461017d578063b31c710a1461019b578063b451b812146101c2578063c42bd05a146101ca57600080fd5b806370ed68d1116100d357806370ed68d11461015257806379ba50971461015a5780637b3c3487146101625780638da5cb5b1461016a57600080fd5b80631f035c7a146100fa578063454b06081461010f57806361d027b314610122575b600080fd5b61010d6101083660046109b2565b610237565b005b61010d61011d3660046109fe565b610288565b600354610135906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010d6102f4565b61010d610374565b61010d61043b565b600054610135906001600160a01b031681565b6000546001600160a01b031633146040519015158152602001610149565b6101357f000000000000000000000000000000000000000000000000000000000000000081565b61010d610523565b6101357f000000000000000000000000000000000000000000000000000000000000000081565b6101fa610e1081565b604051908152602001610149565b600154610135906001600160a01b031681565b6101fa60025481565b61010d610232366004610997565b61059f565b6000546001600160a01b0316331461026a5760405162461bcd60e51b815260040161026190610a66565b60405180910390fd5b600354610284906001600160a01b03848116911683610689565b5050565b6102bd6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846106f1565b6102f16001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610689565b50565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260040161026190610a66565b6002541561036e5760405162461bcd60e51b815260206004820152601a60248201527f4f776e61626c653a20616c726561647920696e697469617465640000000000006044820152606401610261565b42600255565b6001546001600160a01b031633146103da5760405162461bcd60e51b8152602060048201526024808201527f4f776e61626c653a2063616c6c6572206973206e6f742070656e64696e67206f6044820152633bb732b960e11b6064820152608401610261565b6001546040516001600160a01b039091169033907f646fe5eeb20d96ea45a9caafcb508854a2fb5660885ced7772e12a633c97457190600090a360018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000546001600160a01b031633146104655760405162461bcd60e51b815260040161026190610a66565b6000600254116104b05760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b610e10600254426104c19190610a9b565b116105035760405162461bcd60e51b81526020600482015260126024820152714f776e61626c653a20746f6f206561726c7960701b6044820152606401610261565b600080546001600160a01b03199081168255600180549091169055600255565b6000546001600160a01b0316331461054d5760405162461bcd60e51b815260040161026190610a66565b6000600254116105985760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b6000600255565b6000546001600160a01b031633146105c95760405162461bcd60e51b815260040161026190610a66565b6001600160a01b03811661062e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610261565b600080546040516001600160a01b03808516939216917fb150023a879fd806e3599b6ca8ee3b60f0e360ab3846d128d67ebce1a391639a91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0383166024820152604481018290526106ec90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261072f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526107299085906323b872dd60e01b906084016106b5565b50505050565b6000610784826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108019092919063ffffffff16565b8051909150156106ec57808060200190518101906107a291906109dc565b6106ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610261565b6060610810848460008561081a565b90505b9392505050565b60608247101561087b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610261565b843b6108c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610261565b600080866001600160a01b031685876040516108e59190610a17565b60006040518083038185875af1925050503d8060008114610922576040519150601f19603f3d011682016040523d82523d6000602084013e610927565b606091505b5091509150610937828286610942565b979650505050505050565b60608315610951575081610813565b8251156109615782518084602001fd5b8160405162461bcd60e51b81526004016102619190610a33565b80356001600160a01b038116811461099257600080fd5b919050565b6000602082840312156109a957600080fd5b6108138261097b565b600080604083850312156109c557600080fd5b6109ce8361097b565b946020939093013593505050565b6000602082840312156109ee57600080fd5b8151801515811461081357600080fd5b600060208284031215610a1057600080fd5b5035919050565b60008251610a29818460208701610ac0565b9190910192915050565b6020815260008251806020840152610a52816040850160208701610ac0565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015610abb57634e487b7160e01b600052601160045260246000fd5b500390565b60005b83811015610adb578181015183820152602001610ac3565b83811115610729575050600091015256fea264697066735822122083433ca799ad5e5a714dd43e3a27da16903064cafad36c9dd9e667967063eaa964736f6c6343000806003300000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e000000000000000000000000fd66fb512dbc2dfa49377cfe1168eafc4ea6aa5d
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638f32d59b11610097578063dc6d621411610066578063dc6d6214146101f1578063e30c397814610208578063efe1d1301461021b578063f2fde38b1461022457600080fd5b80638f32d59b1461017d578063b31c710a1461019b578063b451b812146101c2578063c42bd05a146101ca57600080fd5b806370ed68d1116100d357806370ed68d11461015257806379ba50971461015a5780637b3c3487146101625780638da5cb5b1461016a57600080fd5b80631f035c7a146100fa578063454b06081461010f57806361d027b314610122575b600080fd5b61010d6101083660046109b2565b610237565b005b61010d61011d3660046109fe565b610288565b600354610135906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010d6102f4565b61010d610374565b61010d61043b565b600054610135906001600160a01b031681565b6000546001600160a01b031633146040519015158152602001610149565b6101357f00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a81565b61010d610523565b6101357f000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e81565b6101fa610e1081565b604051908152602001610149565b600154610135906001600160a01b031681565b6101fa60025481565b61010d610232366004610997565b61059f565b6000546001600160a01b0316331461026a5760405162461bcd60e51b815260040161026190610a66565b60405180910390fd5b600354610284906001600160a01b03848116911683610689565b5050565b6102bd6001600160a01b037f00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a163330846106f1565b6102f16001600160a01b037f000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e163383610689565b50565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260040161026190610a66565b6002541561036e5760405162461bcd60e51b815260206004820152601a60248201527f4f776e61626c653a20616c726561647920696e697469617465640000000000006044820152606401610261565b42600255565b6001546001600160a01b031633146103da5760405162461bcd60e51b8152602060048201526024808201527f4f776e61626c653a2063616c6c6572206973206e6f742070656e64696e67206f6044820152633bb732b960e11b6064820152608401610261565b6001546040516001600160a01b039091169033907f646fe5eeb20d96ea45a9caafcb508854a2fb5660885ced7772e12a633c97457190600090a360018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000546001600160a01b031633146104655760405162461bcd60e51b815260040161026190610a66565b6000600254116104b05760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b610e10600254426104c19190610a9b565b116105035760405162461bcd60e51b81526020600482015260126024820152714f776e61626c653a20746f6f206561726c7960701b6044820152606401610261565b600080546001600160a01b03199081168255600180549091169055600255565b6000546001600160a01b0316331461054d5760405162461bcd60e51b815260040161026190610a66565b6000600254116105985760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b6000600255565b6000546001600160a01b031633146105c95760405162461bcd60e51b815260040161026190610a66565b6001600160a01b03811661062e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610261565b600080546040516001600160a01b03808516939216917fb150023a879fd806e3599b6ca8ee3b60f0e360ab3846d128d67ebce1a391639a91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0383166024820152604481018290526106ec90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261072f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526107299085906323b872dd60e01b906084016106b5565b50505050565b6000610784826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108019092919063ffffffff16565b8051909150156106ec57808060200190518101906107a291906109dc565b6106ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610261565b6060610810848460008561081a565b90505b9392505050565b60608247101561087b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610261565b843b6108c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610261565b600080866001600160a01b031685876040516108e59190610a17565b60006040518083038185875af1925050503d8060008114610922576040519150601f19603f3d011682016040523d82523d6000602084013e610927565b606091505b5091509150610937828286610942565b979650505050505050565b60608315610951575081610813565b8251156109615782518084602001fd5b8160405162461bcd60e51b81526004016102619190610a33565b80356001600160a01b038116811461099257600080fd5b919050565b6000602082840312156109a957600080fd5b6108138261097b565b600080604083850312156109c557600080fd5b6109ce8361097b565b946020939093013593505050565b6000602082840312156109ee57600080fd5b8151801515811461081357600080fd5b600060208284031215610a1057600080fd5b5035919050565b60008251610a29818460208701610ac0565b9190910192915050565b6020815260008251806020840152610a52816040850160208701610ac0565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015610abb57634e487b7160e01b600052601160045260246000fd5b500390565b60005b83811015610adb578181015183820152602001610ac3565b83811115610729575050600091015256fea264697066735822122083433ca799ad5e5a714dd43e3a27da16903064cafad36c9dd9e667967063eaa964736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e000000000000000000000000fd66fb512dbc2dfa49377cfe1168eafc4ea6aa5d
-----Decoded View---------------
Arg [0] : _oldToken (address): 0x08A75dbC7167714CeaC1a8e43a8d643A4EDd625a
Arg [1] : _newToken (address): 0x403d512AB96103562DCaFe4635545E8Ee2753f6e
Arg [2] : _treasury (address): 0xfd66Fb512dBC2dFA49377CfE1168eaFc4ea6Aa5D
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a
Arg [1] : 000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e
Arg [2] : 000000000000000000000000fd66fb512dbc2dfa49377cfe1168eafc4ea6aa5d
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.