More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 72 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Register | 15912514 | 671 days ago | IN | 0 ETH | 0.00223171 | ||||
Register | 15455816 | 737 days ago | IN | 0 ETH | 0.00196052 | ||||
Register | 15351603 | 754 days ago | IN | 0 ETH | 0.00136416 | ||||
Register | 15330457 | 757 days ago | IN | 0 ETH | 0.00108707 | ||||
Register | 15088691 | 794 days ago | IN | 0 ETH | 0.00168632 | ||||
Register | 15046423 | 801 days ago | IN | 0 ETH | 0.00681193 | ||||
Register | 15043460 | 802 days ago | IN | 0 ETH | 0.00508522 | ||||
Register | 15039269 | 802 days ago | IN | 0 ETH | 0.00476589 | ||||
Register | 14982522 | 813 days ago | IN | 0 ETH | 0.00329452 | ||||
Register | 14972590 | 815 days ago | IN | 0 ETH | 0.00520572 | ||||
Register | 14945484 | 819 days ago | IN | 0 ETH | 0.00746004 | ||||
Register | 14943201 | 820 days ago | IN | 0 ETH | 0.00329068 | ||||
Register | 14941030 | 820 days ago | IN | 0 ETH | 0.00513108 | ||||
Withdraw | 14926626 | 822 days ago | IN | 0 ETH | 0.002471 | ||||
Register | 14913058 | 825 days ago | IN | 0 ETH | 0.00377891 | ||||
Register | 14910011 | 825 days ago | IN | 0 ETH | 0.02569148 | ||||
Register | 14908978 | 825 days ago | IN | 0 ETH | 0.00668363 | ||||
Register | 14908380 | 826 days ago | IN | 0 ETH | 0.00375977 | ||||
Register | 14907339 | 826 days ago | IN | 0 ETH | 0.00399232 | ||||
Register | 14890972 | 828 days ago | IN | 0 ETH | 0.00722551 | ||||
Register | 14872752 | 831 days ago | IN | 0 ETH | 0.00598668 | ||||
Register | 14865767 | 833 days ago | IN | 0 ETH | 0.00230854 | ||||
Register | 14864206 | 833 days ago | IN | 0 ETH | 0.00224317 | ||||
Register | 14863915 | 833 days ago | IN | 0 ETH | 0.00394685 | ||||
Register | 14860472 | 833 days ago | IN | 0 ETH | 0.00248475 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
This contract contains unverified libraries: __CACHE_BREAKER__
Contract Name:
SubdomainsRegistry
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: WTFPL pragma solidity 0.8.13; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; interface ENS { function owner(bytes32 node) external view returns (address); function setSubnodeRecord( bytes32 node, bytes32 label, address owner, address resolver, uint64 ttl ) external; function setSubnodeOwner( bytes32 node, bytes32 label, address owner ) external returns (bytes32); } interface PublicResolver { function setAddr(bytes32 node, address a) external; } contract SubdomainsRegistry { using SafeERC20 for IERC20; address public immutable owner; address public immutable token; address public immutable ens; bytes32 public immutable node; address public immutable resolver; mapping(address => Registration) public registrations; struct Registration { uint64 deadline; bool paid; bool withdrawn; } event Register(string domain, bytes32 indexed label, address indexed to, bool indexed paid); event Withdraw(address indexed to); constructor( address _token, address _ens, bytes32 _node, address _resolver ) { owner = msg.sender; token = _token; ens = _ens; node = _node; resolver = _resolver; } function register(string memory domain, address to) external { require(registrations[msg.sender].deadline == 0, "LEVX: ONE_DOMAIN_ALLOWED"); uint256 length = bytes(domain).length; require(length >= 3, "LEVX: DOMAIN_TOO_SHORT"); bytes32 label = keccak256(abi.encodePacked(domain)); bytes32 subnode = keccak256(abi.encodePacked(node, label)); require(ENS(ens).owner(subnode) == address(0), "LEVX: DUPLICATE"); ENS(ens).setSubnodeRecord(node, label, address(this), resolver, 0); PublicResolver(resolver).setAddr(subnode, to); ENS(ens).setSubnodeOwner(node, label, to); bool paid = length <= 7; registrations[msg.sender] = Registration(uint64(block.timestamp + 2 weeks), paid, false); emit Register(domain, label, to, paid); if (paid) { IERC20(token).safeTransferFrom(msg.sender, address(this), 1e18); } } function withdraw(address to) external { Registration storage registration = registrations[msg.sender]; (uint64 deadline, bool paid, bool withdrawn) = ( registration.deadline, registration.paid, registration.withdrawn ); require(paid, "LEVX: NON_PAID"); require(deadline > 0, "LEVX: NON_EXISTENT"); require(deadline <= block.timestamp, "LEVX: TOO_EARLY"); require(!withdrawn, "LEVX: WITHDRAWN"); registration.withdrawn = true; emit Withdraw(to); IERC20(token).safeTransfer(to, 1e18); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.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 Address 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": { "": { "__CACHE_BREAKER__": "0x00000000d41867734bbee4c6863d9255b2b06ac1" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_ens","type":"address"},{"internalType":"bytes32","name":"_node","type":"bytes32"},{"internalType":"address","name":"_resolver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"domain","type":"string"},{"indexed":true,"internalType":"bytes32","name":"label","type":"bytes32"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"bool","name":"paid","type":"bool"}],"name":"Register","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"node","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"domain","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"register","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"registrations","outputs":[{"internalType":"uint64","name":"deadline","type":"uint64"},{"internalType":"bool","name":"paid","type":"bool"},{"internalType":"bool","name":"withdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"resolver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61012060405234801561001157600080fd5b50604051610fa5380380610fa583398101604081905261003091610071565b336080526001600160a01b0393841660a05291831660c05260e05216610100526100be565b80516001600160a01b038116811461006c57600080fd5b919050565b6000806000806080858703121561008757600080fd5b61009085610055565b935061009e60208601610055565b9250604085015191506100b360608601610055565b905092959194509250565b60805160a05160c05160e05161010051610e5f6101466000396000818160920152818161046201526105100152600081816101b4015281816102f201528181610427015261057b01526000818160eb015281816103650152818161049101526105b80152600081816101e90152818161070e01526108e2015260006101250152610e5f6000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b14610120578063942e6bcf14610147578063d70754ec146101af578063fc0c546a146101e457600080fd5b806304f3bcec1461008d5780631e59c529146100d15780633f15457f146100e657806351cff8d91461010d575b600080fd5b6100b47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e46100df366004610c51565b61020b565b005b6100b47f000000000000000000000000000000000000000000000000000000000000000081565b6100e461011b366004610d13565b610746565b6100b47f000000000000000000000000000000000000000000000000000000000000000081565b610187610155366004610d13565b60006020819052908152604090205467ffffffffffffffff81169060ff600160401b8204811691600160481b90041683565b6040805167ffffffffffffffff909416845291151560208401521515908201526060016100c8565b6101d67f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016100c8565b6100b47f000000000000000000000000000000000000000000000000000000000000000081565b3360009081526020819052604090205467ffffffffffffffff16156102775760405162461bcd60e51b815260206004820152601860248201527f4c4556583a204f4e455f444f4d41494e5f414c4c4f574544000000000000000060448201526064015b60405180910390fd5b815160038110156102c35760405162461bcd60e51b8152602060048201526016602482015275131155960e881113d350525397d513d3d7d4d213d49560521b604482015260640161026e565b6000836040516020016102d69190610d5c565b60405160208183030381529060405280519060200120905060007f00000000000000000000000000000000000000000000000000000000000000008260405160200161032c929190918252602082015260400190565b60408051808303601f190181529082905280516020909101206302571be360e01b82526004820181905291506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906302571be390602401602060405180830381865afa1580156103ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d09190610d78565b6001600160a01b0316146104185760405162461bcd60e51b815260206004820152600f60248201526e4c4556583a204455504c494341544560881b604482015260640161026e565b6040516305ef2c7f60e41b81527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018390523060448201526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166064830152600060848301527f00000000000000000000000000000000000000000000000000000000000000001690635ef2c7f09060a401600060405180830381600087803b1580156104d557600080fd5b505af11580156104e9573d6000803e3d6000fd5b505060405162d5fa2b60e81b8152600481018490526001600160a01b0387811660248301527f000000000000000000000000000000000000000000000000000000000000000016925063d5fa2b009150604401600060405180830381600087803b15801561055657600080fd5b505af115801561056a573d6000803e3d6000fd5b50506040516306ab592360e01b81527f00000000000000000000000000000000000000000000000000000000000000006004820152602481018590526001600160a01b0387811660448301527f00000000000000000000000000000000000000000000000000000000000000001692506306ab592391506064016020604051808303816000875af1158015610603573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106279190610d95565b506040805160608101909152600784111590806106474262127500610dae565b67ffffffffffffffff90811682528315156020808401829052600060409485018190523381528082528490208551815492870151968601511515600160481b0260ff60481b19971515600160401b0268ffffffffffffffffff199094169190951617919091179490941691909117909255516001600160a01b0387169085907fca8391cff1e205e30c2379ffcab87fb8e0b533d619a13d87a03769196009301c906106f3908b90610dd4565b60405180910390a4801561073e5761073e6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330670de0b6b3a7640000610918565b505050505050565b336000908152602081905260409020805467ffffffffffffffff81169060ff600160401b8204811691600160481b900416816107b55760405162461bcd60e51b815260206004820152600e60248201526d131155960e881393d397d410525160921b604482015260640161026e565b60008367ffffffffffffffff16116108045760405162461bcd60e51b8152602060048201526012602482015271131155960e881393d397d1561254d511539560721b604482015260640161026e565b428367ffffffffffffffff1611156108505760405162461bcd60e51b815260206004820152600f60248201526e4c4556583a20544f4f5f4541524c5960881b604482015260640161026e565b80156108905760405162461bcd60e51b815260206004820152600f60248201526e2622ab2c1d102ba4aa24222920aba760891b604482015260640161026e565b835460ff60481b1916600160481b1784556040516001600160a01b038616907ff67611512e0a2d90c96fd3f08dca4971bc45fba9dc679eabe839a32abbe58a8e90600090a26109116001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001686670de0b6b3a7640000610989565b5050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526109839085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526109be565b50505050565b6040516001600160a01b0383166024820152604481018290526109b990849063a9059cbb60e01b9060640161094c565b505050565b6000610a13826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a909092919063ffffffff16565b8051909150156109b95780806020019051810190610a319190610e07565b6109b95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161026e565b6060610a9f8484600085610aa9565b90505b9392505050565b606082471015610b0a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161026e565b6001600160a01b0385163b610b615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161026e565b600080866001600160a01b03168587604051610b7d9190610d5c565b60006040518083038185875af1925050503d8060008114610bba576040519150601f19603f3d011682016040523d82523d6000602084013e610bbf565b606091505b5091509150610bcf828286610bda565b979650505050505050565b60608315610be9575081610aa2565b825115610bf95782518084602001fd5b8160405162461bcd60e51b815260040161026e9190610dd4565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c3e57600080fd5b50565b8035610c4c81610c29565b919050565b60008060408385031215610c6457600080fd5b823567ffffffffffffffff80821115610c7c57600080fd5b818501915085601f830112610c9057600080fd5b813581811115610ca257610ca2610c13565b604051601f8201601f19908116603f01168101908382118183101715610cca57610cca610c13565b81604052828152886020848701011115610ce357600080fd5b826020860160208301376000602084830101528096505050505050610d0a60208401610c41565b90509250929050565b600060208284031215610d2557600080fd5b8135610aa281610c29565b60005b83811015610d4b578181015183820152602001610d33565b838111156109835750506000910152565b60008251610d6e818460208701610d30565b9190910192915050565b600060208284031215610d8a57600080fd5b8151610aa281610c29565b600060208284031215610da757600080fd5b5051919050565b60008219821115610dcf57634e487b7160e01b600052601160045260246000fd5b500190565b6020815260008251806020840152610df3816040850160208701610d30565b601f01601f19169190910160400192915050565b600060208284031215610e1957600080fd5b81518015158114610aa257600080fdfea26469706673582212202c30b317387adab7e091aa98ec24e1edc826ce03cb47ff2619d9168e246dabb264736f6c634300080d0033000000000000000000000000de0c1dc7f2b67705cca50039418715f9c7f8d53b00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1ef88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe0000000000000000000000004976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b14610120578063942e6bcf14610147578063d70754ec146101af578063fc0c546a146101e457600080fd5b806304f3bcec1461008d5780631e59c529146100d15780633f15457f146100e657806351cff8d91461010d575b600080fd5b6100b47f0000000000000000000000004976fb03c32e5b8cfe2b6ccb31c09ba78ebaba4181565b6040516001600160a01b0390911681526020015b60405180910390f35b6100e46100df366004610c51565b61020b565b005b6100b47f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e81565b6100e461011b366004610d13565b610746565b6100b47f0000000000000000000000005b8c253517b6bd003369173109693b01cb6841b581565b610187610155366004610d13565b60006020819052908152604090205467ffffffffffffffff81169060ff600160401b8204811691600160481b90041683565b6040805167ffffffffffffffff909416845291151560208401521515908201526060016100c8565b6101d67ff88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe81565b6040519081526020016100c8565b6100b47f000000000000000000000000de0c1dc7f2b67705cca50039418715f9c7f8d53b81565b3360009081526020819052604090205467ffffffffffffffff16156102775760405162461bcd60e51b815260206004820152601860248201527f4c4556583a204f4e455f444f4d41494e5f414c4c4f574544000000000000000060448201526064015b60405180910390fd5b815160038110156102c35760405162461bcd60e51b8152602060048201526016602482015275131155960e881113d350525397d513d3d7d4d213d49560521b604482015260640161026e565b6000836040516020016102d69190610d5c565b60405160208183030381529060405280519060200120905060007ff88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe8260405160200161032c929190918252602082015260400190565b60408051808303601f190181529082905280516020909101206302571be360e01b82526004820181905291506000906001600160a01b037f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e16906302571be390602401602060405180830381865afa1580156103ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d09190610d78565b6001600160a01b0316146104185760405162461bcd60e51b815260206004820152600f60248201526e4c4556583a204455504c494341544560881b604482015260640161026e565b6040516305ef2c7f60e41b81527ff88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe6004820152602481018390523060448201526001600160a01b037f0000000000000000000000004976fb03c32e5b8cfe2b6ccb31c09ba78ebaba4181166064830152600060848301527f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e1690635ef2c7f09060a401600060405180830381600087803b1580156104d557600080fd5b505af11580156104e9573d6000803e3d6000fd5b505060405162d5fa2b60e81b8152600481018490526001600160a01b0387811660248301527f0000000000000000000000004976fb03c32e5b8cfe2b6ccb31c09ba78ebaba4116925063d5fa2b009150604401600060405180830381600087803b15801561055657600080fd5b505af115801561056a573d6000803e3d6000fd5b50506040516306ab592360e01b81527ff88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe6004820152602481018590526001600160a01b0387811660448301527f00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e1692506306ab592391506064016020604051808303816000875af1158015610603573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106279190610d95565b506040805160608101909152600784111590806106474262127500610dae565b67ffffffffffffffff90811682528315156020808401829052600060409485018190523381528082528490208551815492870151968601511515600160481b0260ff60481b19971515600160401b0268ffffffffffffffffff199094169190951617919091179490941691909117909255516001600160a01b0387169085907fca8391cff1e205e30c2379ffcab87fb8e0b533d619a13d87a03769196009301c906106f3908b90610dd4565b60405180910390a4801561073e5761073e6001600160a01b037f000000000000000000000000de0c1dc7f2b67705cca50039418715f9c7f8d53b163330670de0b6b3a7640000610918565b505050505050565b336000908152602081905260409020805467ffffffffffffffff81169060ff600160401b8204811691600160481b900416816107b55760405162461bcd60e51b815260206004820152600e60248201526d131155960e881393d397d410525160921b604482015260640161026e565b60008367ffffffffffffffff16116108045760405162461bcd60e51b8152602060048201526012602482015271131155960e881393d397d1561254d511539560721b604482015260640161026e565b428367ffffffffffffffff1611156108505760405162461bcd60e51b815260206004820152600f60248201526e4c4556583a20544f4f5f4541524c5960881b604482015260640161026e565b80156108905760405162461bcd60e51b815260206004820152600f60248201526e2622ab2c1d102ba4aa24222920aba760891b604482015260640161026e565b835460ff60481b1916600160481b1784556040516001600160a01b038616907ff67611512e0a2d90c96fd3f08dca4971bc45fba9dc679eabe839a32abbe58a8e90600090a26109116001600160a01b037f000000000000000000000000de0c1dc7f2b67705cca50039418715f9c7f8d53b1686670de0b6b3a7640000610989565b5050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526109839085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526109be565b50505050565b6040516001600160a01b0383166024820152604481018290526109b990849063a9059cbb60e01b9060640161094c565b505050565b6000610a13826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610a909092919063ffffffff16565b8051909150156109b95780806020019051810190610a319190610e07565b6109b95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161026e565b6060610a9f8484600085610aa9565b90505b9392505050565b606082471015610b0a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161026e565b6001600160a01b0385163b610b615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161026e565b600080866001600160a01b03168587604051610b7d9190610d5c565b60006040518083038185875af1925050503d8060008114610bba576040519150601f19603f3d011682016040523d82523d6000602084013e610bbf565b606091505b5091509150610bcf828286610bda565b979650505050505050565b60608315610be9575081610aa2565b825115610bf95782518084602001fd5b8160405162461bcd60e51b815260040161026e9190610dd4565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c3e57600080fd5b50565b8035610c4c81610c29565b919050565b60008060408385031215610c6457600080fd5b823567ffffffffffffffff80821115610c7c57600080fd5b818501915085601f830112610c9057600080fd5b813581811115610ca257610ca2610c13565b604051601f8201601f19908116603f01168101908382118183101715610cca57610cca610c13565b81604052828152886020848701011115610ce357600080fd5b826020860160208301376000602084830101528096505050505050610d0a60208401610c41565b90509250929050565b600060208284031215610d2557600080fd5b8135610aa281610c29565b60005b83811015610d4b578181015183820152602001610d33565b838111156109835750506000910152565b60008251610d6e818460208701610d30565b9190910192915050565b600060208284031215610d8a57600080fd5b8151610aa281610c29565b600060208284031215610da757600080fd5b5051919050565b60008219821115610dcf57634e487b7160e01b600052601160045260246000fd5b500190565b6020815260008251806020840152610df3816040850160208701610d30565b601f01601f19169190910160400192915050565b600060208284031215610e1957600080fd5b81518015158114610aa257600080fdfea26469706673582212202c30b317387adab7e091aa98ec24e1edc826ce03cb47ff2619d9168e246dabb264736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000de0c1dc7f2b67705cca50039418715f9c7f8d53b00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1ef88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe0000000000000000000000004976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41
-----Decoded View---------------
Arg [0] : _token (address): 0xdE0C1dC7f2b67705Cca50039418715F9C7F8D53B
Arg [1] : _ens (address): 0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e
Arg [2] : _node (bytes32): 0xf88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe
Arg [3] : _resolver (address): 0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000de0c1dc7f2b67705cca50039418715f9c7f8d53b
Arg [1] : 00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e
Arg [2] : f88903d82aebfe9a5fa03a1a6eb4475330ed9991c9b6ffea0f6d0154a210efbe
Arg [3] : 0000000000000000000000004976fb03c32e5b8cfe2b6ccb31c09ba78ebaba41
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.