More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Loading...
Loading
Contract Name:
NitroVault
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "./TransferHelper.sol"; contract NitroVault is Context, AccessControl { bytes32 public constant VAULT = keccak256("VAULT"); address public owner; address public token; constructor(address _owner, address _token) { require(_owner != address(0), "Vault:: Owner can not be zero address"); require(_token != address(0), "Vault:: Token can not be zero address"); owner = _owner; token = _token; _setupRole(DEFAULT_ADMIN_ROLE, owner); } function release(address _to, uint256 _amount) public { require(_to != address(0), "Vault:: _to can not be zero address"); require(_amount > 0, "Vault:: _amount can not be zero"); require(hasRole(VAULT, _msgSender()), "Vault:: Release :: Unauthorized Access"); TransferHelper.safeTransfer(token, _to, _amount); } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity 0.8.4; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call( abi.encodeWithSelector(0x095ea7b3, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeApprove: approve failed" ); } function safeTransfer( address token, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call( abi.encodeWithSelector(0xa9059cbb, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeTransfer: transfer failed" ); } function safeTransferFrom( address token, address from, address to, uint256 value ) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call( abi.encodeWithSelector(0x23b872dd, from, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::transferFrom: transferFrom failed" ); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require( success, "TransferHelper::safeTransferETH: ETH transfer failed" ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610d62380380610d6283398101604081905261002f91610205565b6001600160a01b0382166100985760405162461bcd60e51b815260206004820152602560248201527f5661756c743a3a204f776e65722063616e206e6f74206265207a65726f206164604482015264647265737360d81b60648201526084015b60405180910390fd5b6001600160a01b0381166100fc5760405162461bcd60e51b815260206004820152602560248201527f5661756c743a3a20546f6b656e2063616e206e6f74206265207a65726f206164604482015264647265737360d81b606482015260840161008f565b600180546001600160a01b038085166001600160a01b0319928316811790935560028054918516919092161790556101369060009061013d565b5050610237565b610147828261014b565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610147576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556101a53390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b80516001600160a01b038116811461020057600080fd5b919050565b60008060408385031215610217578182fd5b610220836101e9565b915061022e602084016101e9565b90509250929050565b610b1c806102466000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063411557d111610071578063411557d1146101425780638da5cb5b1461016957806391d1485414610194578063a217fddf146101a7578063d547741f146101af578063fc0c546a146101c257600080fd5b806301ffc9a7146100ae5780630357371d146100d6578063248a9ca3146100eb5780632f2ff15d1461011c57806336568abe1461012f575b600080fd5b6100c16100bc366004610966565b6101d5565b60405190151581526020015b60405180910390f35b6100e96100e43660046108da565b61020c565b005b61010e6100f9366004610923565b60009081526020819052604090206001015490565b6040519081526020016100cd565b6100e961012a36600461093b565b610363565b6100e961013d36600461093b565b61038e565b61010e7f68fc488efe30251cadb6ac88bdeef3f1a5e6048808baf387258d1d78e986720c81565b60015461017c906001600160a01b031681565b6040516001600160a01b0390911681526020016100cd565b6100c16101a236600461093b565b610408565b61010e600081565b6100e96101bd36600461093b565b610431565b60025461017c906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b148061020657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001600160a01b0382166102735760405162461bcd60e51b815260206004820152602360248201527f5661756c743a3a205f746f2063616e206e6f74206265207a65726f206164647260448201526265737360e81b60648201526084015b60405180910390fd5b600081116102c35760405162461bcd60e51b815260206004820152601f60248201527f5661756c743a3a205f616d6f756e742063616e206e6f74206265207a65726f00604482015260640161026a565b6102ed7f68fc488efe30251cadb6ac88bdeef3f1a5e6048808baf387258d1d78e986720c33610408565b6103485760405162461bcd60e51b815260206004820152602660248201527f5661756c743a3a2052656c65617365203a3a20556e617574686f72697a65642060448201526541636365737360d01b606482015260840161026a565b60025461035f906001600160a01b03168383610457565b5050565b60008281526020819052604090206001015461037f8133610588565b61038983836105ec565b505050565b6001600160a01b03811633146103fe5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161026a565b61035f8282610670565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008281526020819052604090206001015461044d8133610588565b6103898383610670565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916104b3919061098e565b6000604051808303816000865af19150503d80600081146104f0576040519150601f19603f3d011682016040523d82523d6000602084013e6104f5565b606091505b509150915081801561051f57508051158061051f57508080602001905181019061051f9190610903565b6105815760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b606482015260840161026a565b5050505050565b6105928282610408565b61035f576105aa816001600160a01b031660146106d5565b6105b58360206106d5565b6040516020016105c69291906109aa565b60408051601f198184030181529082905262461bcd60e51b825261026a91600401610a1f565b6105f68282610408565b61035f576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561062c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61067a8282610408565b1561035f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060006106e4836002610a6a565b6106ef906002610a52565b67ffffffffffffffff81111561071557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561073f576020820181803683370190505b509050600360fc1b8160008151811061076857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106107a557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006107c9846002610a6a565b6107d4906001610a52565b90505b6001811115610868576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061081657634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061083a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361086181610ab9565b90506107d7565b5083156108b75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161026a565b9392505050565b80356001600160a01b03811681146108d557600080fd5b919050565b600080604083850312156108ec578182fd5b6108f5836108be565b946020939093013593505050565b600060208284031215610914578081fd5b815180151581146108b7578182fd5b600060208284031215610934578081fd5b5035919050565b6000806040838503121561094d578182fd5b8235915061095d602084016108be565b90509250929050565b600060208284031215610977578081fd5b81356001600160e01b0319811681146108b7578182fd5b600082516109a0818460208701610a89565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516109e2816017850160208801610a89565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610a13816028840160208801610a89565b01602801949350505050565b6020815260008251806020840152610a3e816040850160208701610a89565b601f01601f19169190910160400192915050565b60008219821115610a6557610a65610ad0565b500190565b6000816000190483118215151615610a8457610a84610ad0565b500290565b60005b83811015610aa4578181015183820152602001610a8c565b83811115610ab3576000848401525b50505050565b600081610ac857610ac8610ad0565b506000190190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220bfc47bc4a6f907a37b45568e6d7fd1c90e4bf1a59df6d7e5cb45ffd20fef31e664736f6c6343000804003300000000000000000000000079b215353de491afd90c1b73ca226d2c6928c676000000000000000000000000809826cceab68c387726af962713b64cb5cb3cca
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063411557d111610071578063411557d1146101425780638da5cb5b1461016957806391d1485414610194578063a217fddf146101a7578063d547741f146101af578063fc0c546a146101c257600080fd5b806301ffc9a7146100ae5780630357371d146100d6578063248a9ca3146100eb5780632f2ff15d1461011c57806336568abe1461012f575b600080fd5b6100c16100bc366004610966565b6101d5565b60405190151581526020015b60405180910390f35b6100e96100e43660046108da565b61020c565b005b61010e6100f9366004610923565b60009081526020819052604090206001015490565b6040519081526020016100cd565b6100e961012a36600461093b565b610363565b6100e961013d36600461093b565b61038e565b61010e7f68fc488efe30251cadb6ac88bdeef3f1a5e6048808baf387258d1d78e986720c81565b60015461017c906001600160a01b031681565b6040516001600160a01b0390911681526020016100cd565b6100c16101a236600461093b565b610408565b61010e600081565b6100e96101bd36600461093b565b610431565b60025461017c906001600160a01b031681565b60006001600160e01b03198216637965db0b60e01b148061020657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6001600160a01b0382166102735760405162461bcd60e51b815260206004820152602360248201527f5661756c743a3a205f746f2063616e206e6f74206265207a65726f206164647260448201526265737360e81b60648201526084015b60405180910390fd5b600081116102c35760405162461bcd60e51b815260206004820152601f60248201527f5661756c743a3a205f616d6f756e742063616e206e6f74206265207a65726f00604482015260640161026a565b6102ed7f68fc488efe30251cadb6ac88bdeef3f1a5e6048808baf387258d1d78e986720c33610408565b6103485760405162461bcd60e51b815260206004820152602660248201527f5661756c743a3a2052656c65617365203a3a20556e617574686f72697a65642060448201526541636365737360d01b606482015260840161026a565b60025461035f906001600160a01b03168383610457565b5050565b60008281526020819052604090206001015461037f8133610588565b61038983836105ec565b505050565b6001600160a01b03811633146103fe5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161026a565b61035f8282610670565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60008281526020819052604090206001015461044d8133610588565b6103898383610670565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000928392908716916104b3919061098e565b6000604051808303816000865af19150503d80600081146104f0576040519150601f19603f3d011682016040523d82523d6000602084013e6104f5565b606091505b509150915081801561051f57508051158061051f57508080602001905181019061051f9190610903565b6105815760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b606482015260840161026a565b5050505050565b6105928282610408565b61035f576105aa816001600160a01b031660146106d5565b6105b58360206106d5565b6040516020016105c69291906109aa565b60408051601f198184030181529082905262461bcd60e51b825261026a91600401610a1f565b6105f68282610408565b61035f576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561062c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61067a8282610408565b1561035f576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060006106e4836002610a6a565b6106ef906002610a52565b67ffffffffffffffff81111561071557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561073f576020820181803683370190505b509050600360fc1b8160008151811061076857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106107a557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006107c9846002610a6a565b6107d4906001610a52565b90505b6001811115610868576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061081657634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061083a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361086181610ab9565b90506107d7565b5083156108b75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161026a565b9392505050565b80356001600160a01b03811681146108d557600080fd5b919050565b600080604083850312156108ec578182fd5b6108f5836108be565b946020939093013593505050565b600060208284031215610914578081fd5b815180151581146108b7578182fd5b600060208284031215610934578081fd5b5035919050565b6000806040838503121561094d578182fd5b8235915061095d602084016108be565b90509250929050565b600060208284031215610977578081fd5b81356001600160e01b0319811681146108b7578182fd5b600082516109a0818460208701610a89565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516109e2816017850160208801610a89565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610a13816028840160208801610a89565b01602801949350505050565b6020815260008251806020840152610a3e816040850160208701610a89565b601f01601f19169190910160400192915050565b60008219821115610a6557610a65610ad0565b500190565b6000816000190483118215151615610a8457610a84610ad0565b500290565b60005b83811015610aa4578181015183820152602001610a8c565b83811115610ab3576000848401525b50505050565b600081610ac857610ac8610ad0565b506000190190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220bfc47bc4a6f907a37b45568e6d7fd1c90e4bf1a59df6d7e5cb45ffd20fef31e664736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000079b215353de491afd90c1b73ca226d2c6928c676000000000000000000000000809826cceab68c387726af962713b64cb5cb3cca
-----Decoded View---------------
Arg [0] : _owner (address): 0x79b215353dE491AfD90C1B73cA226D2c6928c676
Arg [1] : _token (address): 0x809826cceAb68c387726af962713b64Cb5Cb3CCA
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000079b215353de491afd90c1b73ca226d2c6928c676
Arg [1] : 000000000000000000000000809826cceab68c387726af962713b64cb5cb3cca
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000081 | 1,479,639,987.1261 | $119,643.69 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
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.