More Info
Private Name Tags
ContractCreator
Latest 16 from a total of 16 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Collect ETH | 20024968 | 133 days ago | IN | 0 ETH | 0.00096761 | ||||
Collect ETH | 18933578 | 286 days ago | IN | 0 ETH | 0.00054405 | ||||
Collect ETH | 18426810 | 357 days ago | IN | 0 ETH | 0.00041574 | ||||
Collect ETH | 15940069 | 706 days ago | IN | 0 ETH | 0.00309559 | ||||
Set Min And Max | 15876832 | 715 days ago | IN | 0 ETH | 0.0006333 | ||||
Swap Now | 15846105 | 719 days ago | IN | 0 ETH | 0.00031558 | ||||
Set Min And Max | 15830603 | 721 days ago | IN | 0 ETH | 0.0003344 | ||||
Swap Now | 15820234 | 723 days ago | IN | 0 ETH | 0.00048981 | ||||
Collect ETH | 15781852 | 728 days ago | IN | 0 ETH | 0.00047544 | ||||
Swap Now | 15773983 | 729 days ago | IN | 0 ETH | 0.00045779 | ||||
Grant Role | 15773976 | 729 days ago | IN | 0 ETH | 0.00085139 | ||||
Set Randomness A... | 15690785 | 741 days ago | IN | 0 ETH | 0.00036803 | ||||
Renounce Role | 15675155 | 743 days ago | IN | 0 ETH | 0.00039958 | ||||
Grant Role | 15675119 | 743 days ago | IN | 0 ETH | 0.00085414 | ||||
Grant Role | 15675107 | 743 days ago | IN | 0 ETH | 0.00091483 | ||||
0x61014060 | 15675069 | 743 days ago | IN | 0 ETH | 0.03097763 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20024968 | 133 days ago | 0.10904968 ETH | ||||
19967598 | 141 days ago | 0.0034943 ETH | ||||
19948919 | 144 days ago | 0.00434746 ETH | ||||
19937937 | 145 days ago | 0.00931111 ETH | ||||
19278110 | 238 days ago | 0.09189679 ETH | ||||
18933578 | 286 days ago | 0.07814401 ETH | ||||
18469202 | 351 days ago | 0.07814401 ETH | ||||
18426810 | 357 days ago | 3.48757087 ETH | ||||
18112830 | 401 days ago | 0.04263011 ETH | ||||
17998543 | 417 days ago | 0.14800694 ETH | ||||
17804153 | 444 days ago | 0.277219 ETH | ||||
17291001 | 516 days ago | 0.21154438 ETH | ||||
17280250 | 518 days ago | 0.29827549 ETH | ||||
16952791 | 564 days ago | 0.13921854 ETH | ||||
16843737 | 579 days ago | 0.14866687 ETH | ||||
16752791 | 592 days ago | 0.51704718 ETH | ||||
16390131 | 643 days ago | 0.11242483 ETH | ||||
16255290 | 662 days ago | 0.24025703 ETH | ||||
16150760 | 676 days ago | 0.27304204 ETH | ||||
16020637 | 695 days ago | 0.68383624 ETH | ||||
15960594 | 703 days ago | 0.39540216 ETH | ||||
15940069 | 706 days ago | 19.3656453 ETH | ||||
15932578 | 707 days ago | 0.47074438 ETH | ||||
15913995 | 709 days ago | 1.6237887 ETH | ||||
15882007 | 714 days ago | 17.27111221 ETH |
Loading...
Loading
Contract Name:
Charity
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol"; contract Charity is VRFConsumerBaseV2, AccessControl { bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE"); IERC20 public immutable GWD; VRFCoordinatorV2Interface public immutable COORDINATOR; IUniswapV2Router01 public immutable ROUTER; address[] public PATH; uint256[2] public minAndMax = [50000000000, 500000000000]; uint256 public totalDonated; bytes32 public chainlinkParameterKeyHash; uint64 public chainlinkParameterSubId; uint16 public chainlinkParameterMinimumRequestConfirmations; uint32 public chainlinkParameterCallbackGasLimit = 75000; bool public randomnessAndSwapEnabled; bool public randomnessRequested; uint256 private toSwapAt; mapping(address => uint256) public donated; modifier whenDisabled() { require(!randomnessAndSwapEnabled, "Randomness and swap are not disabled"); _; } constructor(address _gwd, address _coordinator, IUniswapV2Router01 _router, bytes32 _keyHash, uint64 _subId, uint16 _minimumRequestConfirmations) VRFConsumerBaseV2(_coordinator) { GWD = IERC20(_gwd); COORDINATOR = VRFCoordinatorV2Interface(_coordinator); ROUTER = _router; PATH.push(_gwd); PATH.push(_router.WETH()); chainlinkParameterKeyHash = _keyHash; chainlinkParameterSubId = _subId; chainlinkParameterMinimumRequestConfirmations = _minimumRequestConfirmations; _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MANAGER_ROLE, _gwd); } receive() external payable {} function addToCharity(uint256 amount, address user) external onlyRole(MANAGER_ROLE) { totalDonated += amount; donated[user] += amount; if (randomnessAndSwapEnabled && GWD.balanceOf(address(this)) >= minAndMax[0] && toSwapAt == 0 && !randomnessRequested) { try COORDINATOR.requestRandomWords(chainlinkParameterKeyHash, chainlinkParameterSubId, chainlinkParameterMinimumRequestConfirmations, chainlinkParameterCallbackGasLimit, 1) { randomnessRequested = true; } catch {} } } function swapNow() external onlyRole(MANAGER_ROLE) { if (randomnessAndSwapEnabled && toSwapAt > 0 && GWD.balanceOf(address(this)) >= toSwapAt) { GWD.approve(address(ROUTER), GWD.balanceOf(address(this))); try ROUTER.swapExactTokensForETH(GWD.balanceOf(address(this)), 0, PATH, address(this), block.timestamp) { toSwapAt = 0; } catch {} } } function setRandomnessAndSwapEnabled(bool _randomnessAndSwapEnabled) external onlyRole(DEFAULT_ADMIN_ROLE) { randomnessAndSwapEnabled = _randomnessAndSwapEnabled; } function setMinAndMax(uint256[2] calldata _minAndMax) external onlyRole(DEFAULT_ADMIN_ROLE) { require(_minAndMax[0] < _minAndMax[1] && _minAndMax[0] > 0, "Invalid parameters"); minAndMax = _minAndMax; } function setChainlinkParameterKeyHash(bytes32 _keyHash) external onlyRole(DEFAULT_ADMIN_ROLE) whenDisabled { chainlinkParameterKeyHash = _keyHash; } function setChainlinkParameterSubId(uint64 _subId) external onlyRole(DEFAULT_ADMIN_ROLE) whenDisabled { chainlinkParameterSubId = _subId; } function setChainlinkParameterMinimumRequestConfirmations(uint16 _minimumRequestConfirmations) external onlyRole(DEFAULT_ADMIN_ROLE) whenDisabled { chainlinkParameterMinimumRequestConfirmations = _minimumRequestConfirmations; } function setChainlinkParameterCallbackGasLimit(uint32 _callbackGasLimit) external onlyRole(DEFAULT_ADMIN_ROLE) whenDisabled { chainlinkParameterCallbackGasLimit = _callbackGasLimit; } function collectGWD() external onlyRole(DEFAULT_ADMIN_ROLE) whenDisabled { GWD.transfer(_msgSender(), GWD.balanceOf(address(this))); } function collectETH() external onlyRole(DEFAULT_ADMIN_ROLE) { payable(_msgSender()).transfer(address(this).balance); } function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal override { randomnessRequested = false; toSwapAt = randomWords[0] % (minAndMax[1] - minAndMax[0]) + minAndMax[0]; } }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// 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 (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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.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 (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.7.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); _; } /** * @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 `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface VRFCoordinatorV2Interface { /** * @notice Get configuration relevant for making requests * @return minimumRequestConfirmations global min for request confirmations * @return maxGasLimit global max for request gas limit * @return s_provingKeyHashes list of registered key hashes */ function getRequestConfig() external view returns ( uint16, uint32, bytes32[] memory ); /** * @notice Request a set of random words. * @param keyHash - Corresponds to a particular oracle job which uses * that key for generating the VRF proof. Different keyHash's have different gas price * ceilings, so you can select a specific one to bound your maximum per request cost. * @param subId - The ID of the VRF subscription. Must be funded * with the minimum subscription balance required for the selected keyHash. * @param minimumRequestConfirmations - How many blocks you'd like the * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS * for why you may want to request more. The acceptable range is * [minimumRequestBlockConfirmations, 200]. * @param callbackGasLimit - How much gas you'd like to receive in your * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords * may be slightly less than this amount because of gas used calling the function * (argument decoding etc.), so you may need to request slightly more than you expect * to have inside fulfillRandomWords. The acceptable range is * [0, maxGasLimit] * @param numWords - The number of uint256 random values you'd like to receive * in your fulfillRandomWords callback. Note these numbers are expanded in a * secure way by the VRFCoordinator from a single random value supplied by the oracle. * @return requestId - A unique identifier of the request. Can be used to match * a request to a response in fulfillRandomWords. */ function requestRandomWords( bytes32 keyHash, uint64 subId, uint16 minimumRequestConfirmations, uint32 callbackGasLimit, uint32 numWords ) external returns (uint256 requestId); /** * @notice Create a VRF subscription. * @return subId - A unique subscription id. * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer. * @dev Note to fund the subscription, use transferAndCall. For example * @dev LINKTOKEN.transferAndCall( * @dev address(COORDINATOR), * @dev amount, * @dev abi.encode(subId)); */ function createSubscription() external returns (uint64 subId); /** * @notice Get a VRF subscription. * @param subId - ID of the subscription * @return balance - LINK balance of the subscription in juels. * @return reqCount - number of requests for this subscription, determines fee tier. * @return owner - owner of the subscription. * @return consumers - list of consumer address which are able to use this subscription. */ function getSubscription(uint64 subId) external view returns ( uint96 balance, uint64 reqCount, address owner, address[] memory consumers ); /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @param newOwner - proposed new owner of the subscription */ function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external; /** * @notice Request subscription owner transfer. * @param subId - ID of the subscription * @dev will revert if original owner of subId has * not requested that msg.sender become the new owner. */ function acceptSubscriptionOwnerTransfer(uint64 subId) external; /** * @notice Add a consumer to a VRF subscription. * @param subId - ID of the subscription * @param consumer - New consumer which can use the subscription */ function addConsumer(uint64 subId, address consumer) external; /** * @notice Remove a consumer from a VRF subscription. * @param subId - ID of the subscription * @param consumer - Consumer to remove from the subscription */ function removeConsumer(uint64 subId, address consumer) external; /** * @notice Cancel a subscription * @param subId - ID of the subscription * @param to - Where to send the remaining LINK to */ function cancelSubscription(uint64 subId, address to) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** **************************************************************************** * @notice Interface for contracts using VRF randomness * ***************************************************************************** * @dev PURPOSE * * @dev Reggie the Random Oracle (not his real job) wants to provide randomness * @dev to Vera the verifier in such a way that Vera can be sure he's not * @dev making his output up to suit himself. Reggie provides Vera a public key * @dev to which he knows the secret key. Each time Vera provides a seed to * @dev Reggie, he gives back a value which is computed completely * @dev deterministically from the seed and the secret key. * * @dev Reggie provides a proof by which Vera can verify that the output was * @dev correctly computed once Reggie tells it to her, but without that proof, * @dev the output is indistinguishable to her from a uniform random sample * @dev from the output space. * * @dev The purpose of this contract is to make it easy for unrelated contracts * @dev to talk to Vera the verifier about the work Reggie is doing, to provide * @dev simple access to a verifiable source of randomness. It ensures 2 things: * @dev 1. The fulfillment came from the VRFCoordinator * @dev 2. The consumer contract implements fulfillRandomWords. * ***************************************************************************** * @dev USAGE * * @dev Calling contracts must inherit from VRFConsumerBase, and can * @dev initialize VRFConsumerBase's attributes in their constructor as * @dev shown: * * @dev contract VRFConsumer { * @dev constructor(<other arguments>, address _vrfCoordinator, address _link) * @dev VRFConsumerBase(_vrfCoordinator) public { * @dev <initialization with other arguments goes here> * @dev } * @dev } * * @dev The oracle will have given you an ID for the VRF keypair they have * @dev committed to (let's call it keyHash). Create subscription, fund it * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface * @dev subscription management functions). * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations, * @dev callbackGasLimit, numWords), * @dev see (VRFCoordinatorInterface for a description of the arguments). * * @dev Once the VRFCoordinator has received and validated the oracle's response * @dev to your request, it will call your contract's fulfillRandomWords method. * * @dev The randomness argument to fulfillRandomWords is a set of random words * @dev generated from your requestId and the blockHash of the request. * * @dev If your contract could have concurrent requests open, you can use the * @dev requestId returned from requestRandomWords to track which response is associated * @dev with which randomness request. * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind, * @dev if your contract could have multiple requests in flight simultaneously. * * @dev Colliding `requestId`s are cryptographically impossible as long as seeds * @dev differ. * * ***************************************************************************** * @dev SECURITY CONSIDERATIONS * * @dev A method with the ability to call your fulfillRandomness method directly * @dev could spoof a VRF response with any random value, so it's critical that * @dev it cannot be directly called by anything other than this base contract * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method). * * @dev For your users to trust that your contract's random behavior is free * @dev from malicious interference, it's best if you can write it so that all * @dev behaviors implied by a VRF response are executed *during* your * @dev fulfillRandomness method. If your contract must store the response (or * @dev anything derived from it) and use it later, you must ensure that any * @dev user-significant behavior which depends on that stored value cannot be * @dev manipulated by a subsequent VRF request. * * @dev Similarly, both miners and the VRF oracle itself have some influence * @dev over the order in which VRF responses appear on the blockchain, so if * @dev your contract could have multiple VRF requests in flight simultaneously, * @dev you must ensure that the order in which the VRF responses arrive cannot * @dev be used to manipulate your contract's user-significant behavior. * * @dev Since the block hash of the block which contains the requestRandomness * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful * @dev miner could, in principle, fork the blockchain to evict the block * @dev containing the request, forcing the request to be included in a * @dev different block with a different hash, and therefore a different input * @dev to the VRF. However, such an attack would incur a substantial economic * @dev cost. This cost scales with the number of blocks the VRF oracle waits * @dev until it calls responds to a request. It is for this reason that * @dev that you can signal to an oracle you'd like them to wait longer before * @dev responding to the request (however this is not enforced in the contract * @dev and so remains effective only in the case of unmodified oracle software). */ abstract contract VRFConsumerBaseV2 { error OnlyCoordinatorCanFulfill(address have, address want); address private immutable vrfCoordinator; /** * @param _vrfCoordinator address of VRFCoordinator contract */ constructor(address _vrfCoordinator) { vrfCoordinator = _vrfCoordinator; } /** * @notice fulfillRandomness handles the VRF response. Your contract must * @notice implement it. See "SECURITY CONSIDERATIONS" above for important * @notice principles to keep in mind when implementing your fulfillRandomness * @notice method. * * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this * @dev signature, and will call it once it has verified the proof * @dev associated with the randomness. (It is triggered via a call to * @dev rawFulfillRandomness, below.) * * @param requestId The Id initially returned by requestRandomness * @param randomWords the VRF output expanded to the requested number of words */ function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual; // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF // proof. rawFulfillRandomness then calls fulfillRandomness, after validating // the origin of the call function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external { if (msg.sender != vrfCoordinator) { revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator); } fulfillRandomWords(requestId, randomWords); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_gwd","type":"address"},{"internalType":"address","name":"_coordinator","type":"address"},{"internalType":"contract IUniswapV2Router01","name":"_router","type":"address"},{"internalType":"bytes32","name":"_keyHash","type":"bytes32"},{"internalType":"uint64","name":"_subId","type":"uint64"},{"internalType":"uint16","name":"_minimumRequestConfirmations","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"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":"COORDINATOR","outputs":[{"internalType":"contract VRFCoordinatorV2Interface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GWD","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"PATH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROUTER","outputs":[{"internalType":"contract IUniswapV2Router01","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"addToCharity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"chainlinkParameterCallbackGasLimit","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainlinkParameterKeyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainlinkParameterMinimumRequestConfirmations","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"chainlinkParameterSubId","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectGWD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"donated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"minAndMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomnessAndSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomnessRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","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":"uint32","name":"_callbackGasLimit","type":"uint32"}],"name":"setChainlinkParameterCallbackGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_keyHash","type":"bytes32"}],"name":"setChainlinkParameterKeyHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_minimumRequestConfirmations","type":"uint16"}],"name":"setChainlinkParameterMinimumRequestConfirmations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_subId","type":"uint64"}],"name":"setChainlinkParameterSubId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"_minAndMax","type":"uint256[2]"}],"name":"setMinAndMax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_randomnessAndSwapEnabled","type":"bool"}],"name":"setRandomnessAndSwapEnabled","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":"swapNow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalDonated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
610140604052640ba43b740061010090815264746a528800610120526200002a90600290816200029a565b506006805463ffffffff60501b191661249f60531b1790553480156200004f57600080fd5b50604051620027a6380380620027a6833981016040819052620000729162000316565b6001600160a01b03808616608081905287821660a081905260c09190915290851660e081905260018054808201825560008290527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b031916909317909255604080516315ab88c960e31b8152905163ad5c4648916004808201926020929091908290030181865afa15801562000116573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200013c9190620003af565b81546001810183556000928352602083200180546001600160a01b0319166001600160a01b03929092169190911790556005849055600680546001600160401b0385166001600160501b0319909116176801000000000000000061ffff851602179055620001b290620001ac3390565b620001ea565b620001de7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0887620001ea565b505050505050620003d6565b620001f68282620001fa565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001f6576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002563390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8260028101928215620002d4579160200282015b82811115620002d4578251829064ffffffffff16905591602001919060010190620002ae565b50620002e2929150620002e6565b5090565b5b80821115620002e25760008155600101620002e7565b6001600160a01b03811681146200031357600080fd5b50565b60008060008060008060c087890312156200033057600080fd5b86516200033d81620002fd565b60208801519096506200035081620002fd565b60408801519095506200036381620002fd565b6060880151608089015191955093506001600160401b03811681146200038857600080fd5b60a088015190925061ffff81168114620003a157600080fd5b809150509295509295509295565b600060208284031215620003c257600080fd5b8151620003cf81620002fd565b9392505050565b60805160a05160c05160e05161235062000456600039600081816103090152818161149601526115da0152600081816103c20152610c2a0152600081816106b901528181610b0e01528181610eb801528181610f0c015281816113a20152818161145801526116040152600081816107b8015261082001526123506000f3fe6080604052600436106101e65760003560e01c8063a217fddf11610102578063ec87621c11610095578063fb690dcc11610064578063fb690dcc14610665578063fdff9b8114610692578063fe6e1583146106a7578063fe7467a6146106db57600080fd5b8063ec87621c146105e6578063f3a77ee21461061a578063f64b884614610630578063fb0c5c2f1461065057600080fd5b8063c9ce78cb116100d1578063c9ce78cb14610539578063d547741f14610559578063dd2b7a4a14610579578063e5b8bdac146105b957600080fd5b8063a217fddf146104c4578063a4920a60146104d9578063bc78be7c146104f9578063c52002f81461051957600080fd5b806339e2263f1161017a578063443465cc11610149578063443465cc1461041e57806370ef5b8f1461043e57806391d14854146104535780639f45f982146104a457600080fd5b806339e2263f146103705780633a80afb0146103905780633b2bcbf1146103b05780633eb3e409146103e457600080fd5b8063248a9ca3116101b6578063248a9ca3146102a75780632f2ff15d146102d757806332fe7b26146102f757806336568abe1461035057600080fd5b8062b37044146101f257806301ffc9a71461021b57806310ae24971461024b5780631fe543e31461028557600080fd5b366101ed57005b600080fd5b3480156101fe57600080fd5b5061020860045481565b6040519081526020015b60405180910390f35b34801561022757600080fd5b5061023b610236366004611cc6565b610707565b6040519015158152602001610212565b34801561025757600080fd5b506006546102729068010000000000000000900461ffff1681565b60405161ffff9091168152602001610212565b34801561029157600080fd5b506102a56102a0366004611daa565b6107a0565b005b3480156102b357600080fd5b506102086102c2366004611e4c565b60009081526020819052604090206001015490565b3480156102e357600080fd5b506102a56102f2366004611e8e565b610860565b34801561030357600080fd5b5061032b7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610212565b34801561035c57600080fd5b506102a561036b366004611e8e565b61088a565b34801561037c57600080fd5b506102a561038b366004611eba565b610939565b34801561039c57600080fd5b506102a56103ab366004611e8e565b610a2e565b3480156103bc57600080fd5b5061032b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156103f057600080fd5b506006546104059067ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610212565b34801561042a57600080fd5b506102a5610439366004611ee0565b610d07565b34801561044a57600080fd5b506102a5610df2565b34801561045f57600080fd5b5061023b61046e366004611e8e565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156104b057600080fd5b5061032b6104bf366004611e4c565b611020565b3480156104d057600080fd5b50610208600081565b3480156104e557600080fd5b506102a56104f4366004611e4c565b611057565b34801561050557600080fd5b506102a5610514366004611f0a565b61110c565b34801561052557600080fd5b506102a5610534366004611f40565b61119d565b34801561054557600080fd5b506102a5610554366004611f5d565b6111ed565b34801561056557600080fd5b506102a5610574366004611e8e565b6112de565b34801561058557600080fd5b506006546105a4906a0100000000000000000000900463ffffffff1681565b60405163ffffffff9091168152602001610212565b3480156105c557600080fd5b5060065461023b906f01000000000000000000000000000000900460ff1681565b3480156105f257600080fd5b506102087f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b34801561062657600080fd5b5061020860055481565b34801561063c57600080fd5b5061020861064b366004611e4c565b611303565b34801561065c57600080fd5b506102a561131a565b34801561067157600080fd5b50610208610680366004611f81565b60086020526000908152604090205481565b34801561069e57600080fd5b506102a5611702565b3480156106b357600080fd5b5061032b7f000000000000000000000000000000000000000000000000000000000000000081565b3480156106e757600080fd5b5060065461023b906e010000000000000000000000000000900460ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061079a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610852576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001660248201526044015b60405180910390fd5b61085c8282611739565b5050565b60008281526020819052604090206001015461087b816117a8565b61088583836117b2565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116331461092f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610849565b61085c82826118a2565b6000610944816117a8565b6006546e010000000000000000000000000000900460ff16156109e8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b506006805463ffffffff9092166a0100000000000000000000027fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff909216919091179055565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610a58816117a8565b8260046000828254610a6a9190611fcb565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526008602052604081208054859290610aa4908490611fcb565b90915550506006546e010000000000000000000000000000900460ff168015610b7c57506002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b79919061200d565b10155b8015610b885750600754155b8015610baa57506006546f01000000000000000000000000000000900460ff16155b15610885576005546006546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019290925267ffffffffffffffff8116602483015268010000000000000000810461ffff1660448301526a0100000000000000000000900463ffffffff166064820152600160848201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a4016020604051808303816000875af1925050508015610cc2575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610cbf9181019061200d565b60015b156108855750600680547fffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffff166f01000000000000000000000000000000179055505050565b6000610d12816117a8565b6006546e010000000000000000000000000000900460ff1615610db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b50600680547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b6000610dfd816117a8565b6006546e010000000000000000000000000000900460ff1615610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b73ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663a9059cbb336040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8c919061200d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303816000875af1158015610ffc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085c9190612026565b6001818154811061103057600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6000611062816117a8565b6006546e010000000000000000000000000000900460ff1615611106576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b50600555565b6000611117816117a8565b6020820135823510801561112b5750813515155b611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610849565b61088560028381611c73565b60006111a8816117a8565b50600680549115156e010000000000000000000000000000027fffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffff909216919091179055565b60006111f8816117a8565b6006546e010000000000000000000000000000900460ff161561129c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b506006805461ffff90921668010000000000000000027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff909216919091179055565b6000828152602081905260409020600101546112f9816117a8565b61088583836118a2565b6002816002811061131357600080fd5b0154905081565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611344816117a8565b6006546e010000000000000000000000000000900460ff16801561136a57506000600754115b801561142557506007546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156113fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611422919061200d565b10155b156116ff576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063095ea7b3907f00000000000000000000000000000000000000000000000000000000000000009083906370a0823190602401602060405180830381865afa1580156114de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611502919061200d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303816000875af1158015611572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115969190612026565b506040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116916318cbafe5917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561164b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166f919061200d565b6000600130426040518663ffffffff1660e01b8152600401611695959493929190612043565b6000604051808303816000875af19250505080156116f357506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526116f091908101906120d3565b60015b156116ff575060006007555b50565b600061170d816117a8565b60405133904780156108fc02916000818181858888f1935050505015801561085c573d6000803e3d6000fd5b600680547fffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffff169055600254600354611772908290612164565b8260008151811061178557611785611fde565b60200260200101516117979190612177565b6117a19190611fcb565b6007555050565b6116ff8133611959565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661085c5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556118443390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561085c5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661085c576119af8173ffffffffffffffffffffffffffffffffffffffff166014611a29565b6119ba836020611a29565b6040516020016119cb9291906121d6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261084991600401612257565b60606000611a388360026122a8565b611a43906002611fcb565b67ffffffffffffffff811115611a5b57611a5b611d08565b6040519080825280601f01601f191660200182016040528015611a85576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611abc57611abc611fde565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b1f57611b1f611fde565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611b5b8460026122a8565b611b66906001611fcb565b90505b6001811115611c03577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611ba757611ba7611fde565b1a60f81b828281518110611bbd57611bbd611fde565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93611bfc816122e5565b9050611b69565b508315611c6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610849565b9392505050565b8260028101928215611ca1579160200282015b82811115611ca1578235825591602001919060010190611c86565b50611cad929150611cb1565b5090565b5b80821115611cad5760008155600101611cb2565b600060208284031215611cd857600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611c6c57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d7e57611d7e611d08565b604052919050565b600067ffffffffffffffff821115611da057611da0611d08565b5060051b60200190565b60008060408385031215611dbd57600080fd5b8235915060208084013567ffffffffffffffff811115611ddc57600080fd5b8401601f81018613611ded57600080fd5b8035611e00611dfb82611d86565b611d37565b81815260059190911b82018301908381019088831115611e1f57600080fd5b928401925b82841015611e3d57833582529284019290840190611e24565b80955050505050509250929050565b600060208284031215611e5e57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611e8957600080fd5b919050565b60008060408385031215611ea157600080fd5b82359150611eb160208401611e65565b90509250929050565b600060208284031215611ecc57600080fd5b813563ffffffff81168114611c6c57600080fd5b600060208284031215611ef257600080fd5b813567ffffffffffffffff81168114611c6c57600080fd5b600060408284031215611f1c57600080fd5b82604083011115611f2c57600080fd5b50919050565b80151581146116ff57600080fd5b600060208284031215611f5257600080fd5b8135611c6c81611f32565b600060208284031215611f6f57600080fd5b813561ffff81168114611c6c57600080fd5b600060208284031215611f9357600080fd5b611c6c82611e65565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561079a5761079a611f9c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561201f57600080fd5b5051919050565b60006020828403121561203857600080fd5b8151611c6c81611f32565b600060a082018783526020878185015260a0604085015281875480845260c0860191508860005282600020935060005b818110156120a557845473ffffffffffffffffffffffffffffffffffffffff1683526001948501949284019201612073565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b600060208083850312156120e657600080fd5b825167ffffffffffffffff8111156120fd57600080fd5b8301601f8101851361210e57600080fd5b805161211c611dfb82611d86565b81815260059190911b8201830190838101908783111561213b57600080fd5b928401925b8284101561215957835182529284019290840190612140565b979650505050505050565b8181038181111561079a5761079a611f9c565b6000826121ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500690565b60005b838110156121cd5781810151838201526020016121b5565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161220e8160178501602088016121b2565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161224b8160288401602088016121b2565b01602801949350505050565b60208152600082518060208401526122768160408501602087016121b2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156122e0576122e0611f9c565b500290565b6000816122f4576122f4611f9c565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220385c0a692e36e5b89fff39ef6e799d1249a45db2d807c7c33d4fb82fb29ca6ea64736f6c63430008100033000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699090000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef00000000000000000000000000000000000000000000000000000000000001b10000000000000000000000000000000000000000000000000000000000000005
Deployed Bytecode
0x6080604052600436106101e65760003560e01c8063a217fddf11610102578063ec87621c11610095578063fb690dcc11610064578063fb690dcc14610665578063fdff9b8114610692578063fe6e1583146106a7578063fe7467a6146106db57600080fd5b8063ec87621c146105e6578063f3a77ee21461061a578063f64b884614610630578063fb0c5c2f1461065057600080fd5b8063c9ce78cb116100d1578063c9ce78cb14610539578063d547741f14610559578063dd2b7a4a14610579578063e5b8bdac146105b957600080fd5b8063a217fddf146104c4578063a4920a60146104d9578063bc78be7c146104f9578063c52002f81461051957600080fd5b806339e2263f1161017a578063443465cc11610149578063443465cc1461041e57806370ef5b8f1461043e57806391d14854146104535780639f45f982146104a457600080fd5b806339e2263f146103705780633a80afb0146103905780633b2bcbf1146103b05780633eb3e409146103e457600080fd5b8063248a9ca3116101b6578063248a9ca3146102a75780632f2ff15d146102d757806332fe7b26146102f757806336568abe1461035057600080fd5b8062b37044146101f257806301ffc9a71461021b57806310ae24971461024b5780631fe543e31461028557600080fd5b366101ed57005b600080fd5b3480156101fe57600080fd5b5061020860045481565b6040519081526020015b60405180910390f35b34801561022757600080fd5b5061023b610236366004611cc6565b610707565b6040519015158152602001610212565b34801561025757600080fd5b506006546102729068010000000000000000900461ffff1681565b60405161ffff9091168152602001610212565b34801561029157600080fd5b506102a56102a0366004611daa565b6107a0565b005b3480156102b357600080fd5b506102086102c2366004611e4c565b60009081526020819052604090206001015490565b3480156102e357600080fd5b506102a56102f2366004611e8e565b610860565b34801561030357600080fd5b5061032b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610212565b34801561035c57600080fd5b506102a561036b366004611e8e565b61088a565b34801561037c57600080fd5b506102a561038b366004611eba565b610939565b34801561039c57600080fd5b506102a56103ab366004611e8e565b610a2e565b3480156103bc57600080fd5b5061032b7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990981565b3480156103f057600080fd5b506006546104059067ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610212565b34801561042a57600080fd5b506102a5610439366004611ee0565b610d07565b34801561044a57600080fd5b506102a5610df2565b34801561045f57600080fd5b5061023b61046e366004611e8e565b60009182526020828152604080842073ffffffffffffffffffffffffffffffffffffffff93909316845291905290205460ff1690565b3480156104b057600080fd5b5061032b6104bf366004611e4c565b611020565b3480156104d057600080fd5b50610208600081565b3480156104e557600080fd5b506102a56104f4366004611e4c565b611057565b34801561050557600080fd5b506102a5610514366004611f0a565b61110c565b34801561052557600080fd5b506102a5610534366004611f40565b61119d565b34801561054557600080fd5b506102a5610554366004611f5d565b6111ed565b34801561056557600080fd5b506102a5610574366004611e8e565b6112de565b34801561058557600080fd5b506006546105a4906a0100000000000000000000900463ffffffff1681565b60405163ffffffff9091168152602001610212565b3480156105c557600080fd5b5060065461023b906f01000000000000000000000000000000900460ff1681565b3480156105f257600080fd5b506102087f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b0881565b34801561062657600080fd5b5061020860055481565b34801561063c57600080fd5b5061020861064b366004611e4c565b611303565b34801561065c57600080fd5b506102a561131a565b34801561067157600080fd5b50610208610680366004611f81565b60086020526000908152604090205481565b34801561069e57600080fd5b506102a5611702565b3480156106b357600080fd5b5061032b7f000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b81565b3480156106e757600080fd5b5060065461023b906e010000000000000000000000000000900460ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061079a57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091614610852576040517f1cf993f400000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091660248201526044015b60405180910390fd5b61085c8282611739565b5050565b60008281526020819052604090206001015461087b816117a8565b61088583836117b2565b505050565b73ffffffffffffffffffffffffffffffffffffffff8116331461092f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610849565b61085c82826118a2565b6000610944816117a8565b6006546e010000000000000000000000000000900460ff16156109e8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b506006805463ffffffff9092166a0100000000000000000000027fffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffff909216919091179055565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08610a58816117a8565b8260046000828254610a6a9190611fcb565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526008602052604081208054859290610aa4908490611fcb565b90915550506006546e010000000000000000000000000000900460ff168015610b7c57506002546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b16906370a0823190602401602060405180830381865afa158015610b55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b79919061200d565b10155b8015610b885750600754155b8015610baa57506006546f01000000000000000000000000000000900460ff16155b15610885576005546006546040517f5d3b1d30000000000000000000000000000000000000000000000000000000008152600481019290925267ffffffffffffffff8116602483015268010000000000000000810461ffff1660448301526a0100000000000000000000900463ffffffff166064820152600160848201527f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e6990973ffffffffffffffffffffffffffffffffffffffff1690635d3b1d309060a4016020604051808303816000875af1925050508015610cc2575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610cbf9181019061200d565b60015b156108855750600680547fffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffff166f01000000000000000000000000000000179055505050565b6000610d12816117a8565b6006546e010000000000000000000000000000900460ff1615610db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b50600680547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b6000610dfd816117a8565b6006546e010000000000000000000000000000900460ff1615610ea1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b1663a9059cbb336040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b73ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610f68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8c919061200d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303816000875af1158015610ffc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085c9190612026565b6001818154811061103057600080fd5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6000611062816117a8565b6006546e010000000000000000000000000000900460ff1615611106576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b50600555565b6000611117816117a8565b6020820135823510801561112b5750813515155b611191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e76616c696420706172616d657465727300000000000000000000000000006044820152606401610849565b61088560028381611c73565b60006111a8816117a8565b50600680549115156e010000000000000000000000000000027fffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffff909216919091179055565b60006111f8816117a8565b6006546e010000000000000000000000000000900460ff161561129c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f52616e646f6d6e65737320616e64207377617020617265206e6f74206469736160448201527f626c6564000000000000000000000000000000000000000000000000000000006064820152608401610849565b506006805461ffff90921668010000000000000000027fffffffffffffffffffffffffffffffffffffffffffff0000ffffffffffffffff909216919091179055565b6000828152602081905260409020600101546112f9816117a8565b61088583836118a2565b6002816002811061131357600080fd5b0154905081565b7f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08611344816117a8565b6006546e010000000000000000000000000000900460ff16801561136a57506000600754115b801561142557506007546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b73ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156113fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611422919061200d565b10155b156116ff576040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b73ffffffffffffffffffffffffffffffffffffffff169063095ea7b3907f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d9083906370a0823190602401602060405180830381865afa1580156114de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611502919061200d565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff909216600483015260248201526044016020604051808303816000875af1158015611572573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115969190612026565b506040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8116916318cbafe5917f000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b16906370a0823190602401602060405180830381865afa15801561164b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166f919061200d565b6000600130426040518663ffffffff1660e01b8152600401611695959493929190612043565b6000604051808303816000875af19250505080156116f357506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526116f091908101906120d3565b60015b156116ff575060006007555b50565b600061170d816117a8565b60405133904780156108fc02916000818181858888f1935050505015801561085c573d6000803e3d6000fd5b600680547fffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffff169055600254600354611772908290612164565b8260008151811061178557611785611fde565b60200260200101516117979190612177565b6117a19190611fcb565b6007555050565b6116ff8133611959565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661085c5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff85168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556118443390565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff161561085c5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516808552925280832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8516845290915290205460ff1661085c576119af8173ffffffffffffffffffffffffffffffffffffffff166014611a29565b6119ba836020611a29565b6040516020016119cb9291906121d6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261084991600401612257565b60606000611a388360026122a8565b611a43906002611fcb565b67ffffffffffffffff811115611a5b57611a5b611d08565b6040519080825280601f01601f191660200182016040528015611a85576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611abc57611abc611fde565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b1f57611b1f611fde565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000611b5b8460026122a8565b611b66906001611fcb565b90505b6001811115611c03577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110611ba757611ba7611fde565b1a60f81b828281518110611bbd57611bbd611fde565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93611bfc816122e5565b9050611b69565b508315611c6c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610849565b9392505050565b8260028101928215611ca1579160200282015b82811115611ca1578235825591602001919060010190611c86565b50611cad929150611cb1565b5090565b5b80821115611cad5760008155600101611cb2565b600060208284031215611cd857600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611c6c57600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d7e57611d7e611d08565b604052919050565b600067ffffffffffffffff821115611da057611da0611d08565b5060051b60200190565b60008060408385031215611dbd57600080fd5b8235915060208084013567ffffffffffffffff811115611ddc57600080fd5b8401601f81018613611ded57600080fd5b8035611e00611dfb82611d86565b611d37565b81815260059190911b82018301908381019088831115611e1f57600080fd5b928401925b82841015611e3d57833582529284019290840190611e24565b80955050505050509250929050565b600060208284031215611e5e57600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611e8957600080fd5b919050565b60008060408385031215611ea157600080fd5b82359150611eb160208401611e65565b90509250929050565b600060208284031215611ecc57600080fd5b813563ffffffff81168114611c6c57600080fd5b600060208284031215611ef257600080fd5b813567ffffffffffffffff81168114611c6c57600080fd5b600060408284031215611f1c57600080fd5b82604083011115611f2c57600080fd5b50919050565b80151581146116ff57600080fd5b600060208284031215611f5257600080fd5b8135611c6c81611f32565b600060208284031215611f6f57600080fd5b813561ffff81168114611c6c57600080fd5b600060208284031215611f9357600080fd5b611c6c82611e65565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561079a5761079a611f9c565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561201f57600080fd5b5051919050565b60006020828403121561203857600080fd5b8151611c6c81611f32565b600060a082018783526020878185015260a0604085015281875480845260c0860191508860005282600020935060005b818110156120a557845473ffffffffffffffffffffffffffffffffffffffff1683526001948501949284019201612073565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b600060208083850312156120e657600080fd5b825167ffffffffffffffff8111156120fd57600080fd5b8301601f8101851361210e57600080fd5b805161211c611dfb82611d86565b81815260059190911b8201830190838101908783111561213b57600080fd5b928401925b8284101561215957835182529284019290840190612140565b979650505050505050565b8181038181111561079a5761079a611f9c565b6000826121ad577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500690565b60005b838110156121cd5781810151838201526020016121b5565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161220e8160178501602088016121b2565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161224b8160288401602088016121b2565b01602801949350505050565b60208152600082518060208401526122768160408501602087016121b2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156122e0576122e0611f9c565b500290565b6000816122f4576122f4611f9c565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019056fea2646970667358221220385c0a692e36e5b89fff39ef6e799d1249a45db2d807c7c33d4fb82fb29ca6ea64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699090000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef00000000000000000000000000000000000000000000000000000000000001b10000000000000000000000000000000000000000000000000000000000000005
-----Decoded View---------------
Arg [0] : _gwd (address): 0x674c964AC0E89d847d6B0aBd144b797bf78BA56b
Arg [1] : _coordinator (address): 0x271682DEB8C4E0901D1a1550aD2e64D568E69909
Arg [2] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [3] : _keyHash (bytes32): 0x8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [4] : _subId (uint64): 433
Arg [5] : _minimumRequestConfirmations (uint16): 5
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000674c964ac0e89d847d6b0abd144b797bf78ba56b
Arg [1] : 000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909
Arg [2] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [3] : 8af398995b04c28e9951adb9721ef74c74f93e6a478f39e7e0777be13527e7ef
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001b1
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.000062 | 50,462.1867 | $3.1 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.