More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 535 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap ET Hfor Tok... | 16029374 | 610 days ago | IN | 0.00165105 ETH | 0.00281805 | ||||
Swap ET Hfor Tok... | 16018812 | 611 days ago | IN | 0.17 ETH | 0.00466993 | ||||
Swap ET Hfor Tok... | 16017511 | 611 days ago | IN | 0.04499999 ETH | 0.00465085 | ||||
Swap ET Hfor Tok... | 16010736 | 612 days ago | IN | 0.34999999 ETH | 0.0048819 | ||||
Swap ET Hfor Tok... | 16010705 | 612 days ago | IN | 0.33 ETH | 0.00501242 | ||||
Swap ET Hfor Tok... | 16010690 | 612 days ago | IN | 0.1 ETH | 0.00443443 | ||||
Swap Token For E... | 16010686 | 612 days ago | IN | 0 ETH | 0.00827793 | ||||
Swap ET Hfor Tok... | 16010670 | 612 days ago | IN | 0.5 ETH | 0.00529876 | ||||
Swap ET Hfor Tok... | 16010663 | 612 days ago | IN | 0.5 ETH | 0.00316982 | ||||
Swap Token For E... | 16010639 | 612 days ago | IN | 0 ETH | 0.00503022 | ||||
Swap Token For E... | 16010595 | 612 days ago | IN | 0 ETH | 0.00945915 | ||||
Swap Token For T... | 16010570 | 612 days ago | IN | 0 ETH | 0.00599817 | ||||
Swap Token For T... | 16010566 | 612 days ago | IN | 0 ETH | 0.00393654 | ||||
Swap ET Hfor Tok... | 16010493 | 612 days ago | IN | 0.25 ETH | 0.00487101 | ||||
Swap ET Hfor Tok... | 16010481 | 612 days ago | IN | 0.22 ETH | 0.00475516 | ||||
Swap ET Hfor Tok... | 16010456 | 612 days ago | IN | 0.05 ETH | 0.00486001 | ||||
Swap ET Hfor Tok... | 16010447 | 612 days ago | IN | 0.01984324 ETH | 0.00320858 | ||||
Swap ET Hfor Tok... | 16010402 | 612 days ago | IN | 0.02999999 ETH | 0.00354128 | ||||
Swap ET Hfor Tok... | 16010396 | 612 days ago | IN | 0.05 ETH | 0.00445981 | ||||
Swap ET Hfor Tok... | 16010363 | 612 days ago | IN | 19.66425341 ETH | 0.00548009 | ||||
Swap ET Hfor Tok... | 16010362 | 612 days ago | IN | 0.02 ETH | 0.00466715 | ||||
Swap ET Hfor Tok... | 16010339 | 612 days ago | IN | 0.05 ETH | 0.00509418 | ||||
Swap ET Hfor Tok... | 16010334 | 612 days ago | IN | 0.05 ETH | 0.0039073 | ||||
Swap ET Hfor Tok... | 16010305 | 612 days ago | IN | 0.05 ETH | 0.00474661 | ||||
Swap ET Hfor Tok... | 16010262 | 612 days ago | IN | 20.46711843 ETH | 0.0048904 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
16029374 | 610 days ago | 0.00000412 ETH | ||||
16029374 | 610 days ago | 0.00000412 ETH | ||||
16029374 | 610 days ago | 0.0016428 ETH | ||||
16018812 | 611 days ago | 0.000425 ETH | ||||
16018812 | 611 days ago | 0.000425 ETH | ||||
16018812 | 611 days ago | 0.16915 ETH | ||||
16017511 | 611 days ago | 0.0001125 ETH | ||||
16017511 | 611 days ago | 0.00011249 ETH | ||||
16017511 | 611 days ago | 0.04477499 ETH | ||||
16010736 | 612 days ago | 0.000875 ETH | ||||
16010736 | 612 days ago | 0.00087499 ETH | ||||
16010736 | 612 days ago | 0.34824999 ETH | ||||
16010705 | 612 days ago | 0.000825 ETH | ||||
16010705 | 612 days ago | 0.000825 ETH | ||||
16010705 | 612 days ago | 0.32835 ETH | ||||
16010690 | 612 days ago | 0.00025 ETH | ||||
16010690 | 612 days ago | 0.00025 ETH | ||||
16010690 | 612 days ago | 0.0995 ETH | ||||
16010670 | 612 days ago | 0.00125 ETH | ||||
16010670 | 612 days ago | 0.00125 ETH | ||||
16010670 | 612 days ago | 0.4975 ETH | ||||
16010663 | 612 days ago | 0.4975 ETH | ||||
16010493 | 612 days ago | 0.000625 ETH | ||||
16010493 | 612 days ago | 0.000625 ETH | ||||
16010493 | 612 days ago | 0.24875 ETH |
Loading...
Loading
Contract Name:
SwapTokenETH
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "../SwapTokenBase.sol"; contract SwapTokenETH is SwapTokenBase { constructor(uint256 _fee, address _addr) SwapTokenBase(_fee, _addr) {} function UNISWAP_V2_ROUTER() internal pure override returns (IUniswapV2Router02) { return IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); } function UNISWAP_FACTORY() internal pure override returns (IUniswapV2Factory) { return IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; import "./interfaces/IWETH.sol"; import "./interfaces/IBeneficiaryBase.sol"; abstract contract SwapTokenBase is AccessControl { using SafeERC20 for IERC20; bytes32 public constant DEVELOPER = keccak256("DEVELOPER"); bytes32 public constant ADMIN = keccak256("ADMIN"); address internal constant deadAddress = 0x000000000000000000000000000000000000dEaD; address internal immutable WETH; address public immutable wallet; uint256 public immutable fee; modifier validate(address[] memory path) { require(path.length >= 2, "INVALID_PATH"); _; } constructor(uint256 _fee, address _addr) { WETH = UNISWAP_V2_ROUTER().WETH(); fee = _fee; wallet = _addr; _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(ADMIN, msg.sender); _grantRole(DEVELOPER, msg.sender); } function VOLT() public pure virtual returns (address) { return 0x7db5af2B9624e1b3B4Bb69D6DeBd9aD1016A58Ac; } function UNISWAP_V2_ROUTER() internal pure virtual returns (IUniswapV2Router02); function UNISWAP_FACTORY() internal pure virtual returns (IUniswapV2Factory); function burn(uint256 _feeAmount, address[] memory _path) internal { address tokenIn = _path[0]; address tokenOut = _path[_path.length - 1]; bool whitelistIn = tokenIn == WETH ? true : IBeneficiaryBase(wallet).tokenWhitelist(tokenIn); bool whitelistOut = tokenOut == WETH ? true : IBeneficiaryBase(wallet).tokenWhitelist(tokenOut); if (whitelistIn && whitelistOut) { if (tokenIn == WETH) { _safeTransfer(wallet, _feeAmount); } else { address[] memory wethPath = _getWETHPath(_path); if (wethPath.length >= 2) { // buy ETH and send to beneficiary to buy-back and burn 0.5% VOLT UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens( _feeAmount, 0, wethPath, wallet, block.timestamp ); } else { IERC20(tokenIn).safeTransfer(wallet, _feeAmount); } } } else if (whitelistOut) { if (tokenIn == VOLT()) { IERC20(tokenIn).safeTransfer(deadAddress, _feeAmount); } else { uint256 _firstFeeAmount = _feeAmount / 2; // burn 0.25% of input token IERC20(tokenIn).safeTransfer(deadAddress, _firstFeeAmount); uint256 _secondFeeAmount = _feeAmount - _firstFeeAmount; address[] memory wethPath = _getWETHPath(_path); if (wethPath.length >= 2) { // buy ETH and send to beneficiary to buy-back and burn 0.25% VOLT UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens( _secondFeeAmount, 0, wethPath, wallet, block.timestamp ); } else { IERC20(tokenIn).safeTransfer(wallet, _secondFeeAmount); } } } else { uint256 _firstFeeAmount = _feeAmount / 2; uint256 _secondFeeAmount = _feeAmount - _firstFeeAmount; // buy 0.25% of output token and burn if (tokenIn == WETH) { UNISWAP_V2_ROUTER().swapExactETHForTokensSupportingFeeOnTransferTokens{value: _firstFeeAmount}( 0, _path, deadAddress, block.timestamp ); _safeTransfer(wallet, _secondFeeAmount); } else { UNISWAP_V2_ROUTER().swapExactTokensForTokensSupportingFeeOnTransferTokens( _firstFeeAmount, 0, _path, deadAddress, block.timestamp ); address[] memory wethPath = _getWETHPath(_path); if (wethPath.length >= 2) { // buy ETH and send to beneficiary to buy-back and burn 0.25% VOLT UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens( _secondFeeAmount, 0, wethPath, wallet, block.timestamp ); } else { IERC20(tokenIn).safeTransfer(wallet, _secondFeeAmount); } } } } function swapTokenForToken( uint256 _amountIn, uint256 _amountOutMin, address _dest, address[] memory _path ) public validate(_path) { address tokenIn = _path[0]; IERC20(tokenIn).safeTransferFrom(_dest, address(this), _amountIn); uint256 _realAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens _approve(tokenIn, _realAmountIn); uint256 feeAmount = (_realAmountIn * fee) / 10000; uint256 amountInSub = _realAmountIn - feeAmount; UNISWAP_V2_ROUTER().swapExactTokensForTokensSupportingFeeOnTransferTokens( amountInSub, _amountOutMin, _path, _dest, block.timestamp ); burn(feeAmount, _path); } function swapTokenForExactToken( uint256 _amountOut, uint256 _amountInMax, address[] memory _path ) public validate(_path) { address tokenIn = _path[0]; IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), _amountInMax); uint256 adjustedAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens _approve(tokenIn, adjustedAmountIn); uint256 adjustedFee = (adjustedAmountIn * fee) / 10000; uint256[] memory amounts = UNISWAP_V2_ROUTER().swapTokensForExactTokens( _amountOut, adjustedAmountIn - adjustedFee, _path, msg.sender, block.timestamp ); uint256 realAmountIn = amounts[0]; uint256 feeAmount = (realAmountIn * fee) / 10000; uint256 refundAmount = adjustedAmountIn - realAmountIn - feeAmount; if (refundAmount > 0) { IERC20(tokenIn).safeTransfer(msg.sender, refundAmount); } burn(feeAmount, _path); } function swapTokenForETH( uint256 _amountIn, uint256 _amountOutMin, address _dest, address[] memory _path ) public validate(_path) { address tokenIn = _path[0]; IERC20(tokenIn).safeTransferFrom(_dest, address(this), _amountIn); uint256 adjustedAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens if (tokenIn == WETH) { IWETH(WETH).withdraw(adjustedAmountIn); _safeTransfer(_dest, adjustedAmountIn); } else { _approve(tokenIn, adjustedAmountIn); uint256 feeAmount = (adjustedAmountIn * fee) / 10000; uint256 amountInSub = adjustedAmountIn - feeAmount; UNISWAP_V2_ROUTER().swapExactTokensForETHSupportingFeeOnTransferTokens( amountInSub, _amountOutMin, _path, _dest, block.timestamp ); burn(feeAmount, _path); } } function swapTokenForExactETH( uint256 _amountOut, uint256 _amountInMax, address[] memory _path ) public validate(_path) { address tokenIn = _path[0]; IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), _amountInMax); uint256 adjustedAmountIn = IERC20(tokenIn).balanceOf(address(this)); // handle fee on transfer tokens if (tokenIn == WETH) { IWETH(WETH).withdraw(adjustedAmountIn); _safeTransfer(msg.sender, adjustedAmountIn); } else { _approve(tokenIn, adjustedAmountIn); uint256 adjustedFee = (adjustedAmountIn * fee) / 10000; uint256[] memory amounts = UNISWAP_V2_ROUTER().swapTokensForExactETH( _amountOut, adjustedAmountIn - adjustedFee, _path, msg.sender, block.timestamp ); uint256 realAmountIn = amounts[0]; uint256 feeAmount = (realAmountIn * fee) / 10000; uint256 refundAmount = adjustedAmountIn - realAmountIn - feeAmount; if (refundAmount > 0) { IERC20(tokenIn).safeTransfer(msg.sender, refundAmount); } burn(feeAmount, _path); } } function swapETHforToken( uint256 _amountOutMin, address _dest, address[] memory _path ) public payable validate(_path) { address tokenOut = _path[_path.length - 1]; uint256 amountIn = msg.value; if (tokenOut == WETH) { IWETH(WETH).deposit{value: amountIn}(); IERC20(WETH).safeTransfer(_dest, amountIn); } else { uint256 feeAmount = (amountIn * fee) / 10000; uint256 amountInSub = amountIn - feeAmount; UNISWAP_V2_ROUTER().swapExactETHForTokensSupportingFeeOnTransferTokens{value: amountInSub}( _amountOutMin, _path, _dest, block.timestamp ); burn(feeAmount, _path); } } function swapETHforExactToken(uint256 _amountOut, address[] memory _path) public payable validate(_path) { address tokenOut = _path[_path.length - 1]; uint256 amountIn = msg.value; if (tokenOut == WETH) { IWETH(WETH).deposit{value: amountIn}(); IERC20(WETH).safeTransfer(msg.sender, amountIn); } else { uint256 feeAmount = (amountIn * fee) / 10000; uint256 amountInSub = amountIn - feeAmount; uint256[] memory amounts = UNISWAP_V2_ROUTER().swapETHForExactTokens{value: amountInSub}( _amountOut, _path, msg.sender, block.timestamp ); uint256 refund = amountInSub - amounts[0]; if (refund > 0) { _safeTransfer(msg.sender, refund); } burn(feeAmount, _path); } } function getPair(address _tokenIn, address _tokenOut) external view returns (address) { return UNISWAP_FACTORY().getPair(_tokenIn, _tokenOut); } function getAmountIn(uint256 _amountOut, address[] memory _path) public view returns (uint256) { uint256[] memory amountsIn = UNISWAP_V2_ROUTER().getAmountsIn(_amountOut, _path); return amountsIn[0]; } function getAmountOutMinWithFees(uint256 _amountIn, address[] memory _path) public view returns (uint256) { uint256 feeAmount = (_amountIn * fee) / 10000; uint256 amountInSub = _amountIn - feeAmount; uint256[] memory amountOutMins = UNISWAP_V2_ROUTER().getAmountsOut(amountInSub, _path); return amountOutMins[amountOutMins.length - 1]; } function _getWETHPath(address[] memory _path) internal view returns (address[] memory wethPath) { uint256 index = 0; for (uint256 i = 0; i < _path.length; i++) { if (_path[i] == WETH) { index = i + 1; break; } } wethPath = new address[](index); for (uint256 i = 0; i < index; i++) { wethPath[i] = _path[i]; } } function _safeTransfer(address _to, uint256 _amount) internal { (bool sent, ) = _to.call{value: _amount}(""); require(sent, "Failed to send Ether"); } function getTokenDecimals(address _addr) public view returns (uint8) { return IERC20Metadata(_addr).decimals(); } /// @dev USDTs token implementation does not conform to the ERC20 standard /// first of all it requires an allowance to be set to zero before it can be set to a new value, therefore we set the allowance to zero here first /// secondly the return type does not conform to the ERC20 standard, therefore we ignore the return value function _approve(address token, uint256 amount) internal { (bool success, ) = token.call( abi.encodeWithSignature("approve(address,uint256)", address(UNISWAP_V2_ROUTER()), 0) ); require(success, "Approval to zero failed"); (success, ) = token.call( abi.encodeWithSignature("approve(address,uint256)", address(UNISWAP_V2_ROUTER()), amount) ); require(success, "Approval failed"); } receive() external payable {} }
// 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 // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IWETH { function deposit() external payable; function withdraw(uint256) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; interface IBeneficiaryBase { function burn(uint256 _amountOutMin) external; function rescue(address _token) external; function tokenWhitelist(address _addr) external view 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 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.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/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/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 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_addr","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":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEVELOPER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VOLT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"getAmountIn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"getAmountOutMinWithFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"_addr","type":"address"}],"name":"getTokenDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"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":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapETHforExactToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"address","name":"_dest","type":"address"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapETHforToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"address","name":"_dest","type":"address"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"uint256","name":"_amountInMax","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForExactETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"},{"internalType":"uint256","name":"_amountInMax","type":"uint256"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForExactToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_amountOutMin","type":"uint256"},{"internalType":"address","name":"_dest","type":"address"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"swapTokenForToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040523480156200001157600080fd5b50604051620032eb380380620032eb833981016040819052620000349162000204565b8181737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b1580156200008457600080fd5b505afa15801562000099573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000bf919062000233565b6001600160a01b0390811660805260c0839052811660a052620000e460003362000146565b620001107fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec423362000146565b6200013c7f2714cbbaddbb71bcae9366d8bf7770636ec7ae63227b573986d2f54fffacb39d3362000146565b5050505062000258565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16620001e3576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001a23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b80516001600160a01b0381168114620001ff57600080fd5b919050565b600080604083850312156200021857600080fd5b825191506200022a60208401620001e7565b90509250929050565b6000602082840312156200024657600080fd5b6200025182620001e7565b9392505050565b60805160a05160c051612f836200036860003960008181610471015281816106710152818161074201528181610a7b01528181610d3501528181610e2e0152818161107a0152818161133901526116a50152600081816102f401528181611a3701528181611b1501528181611be701528181611c5801528181611cc801528181611db301528181611e2301528181611f200152818161200a015261207a015260008181610989015281816109c301528181610a4101528181610fa501528181610ff30152818161124701528181611281015281816112ff015281816115d501528181611623015281816119e101528181611abf01528181611baa01528181611e6f01526123ab0152612f836000f3fe6080604052600436106101795760003560e01c806391d14854116100cb578063d349e7251161007f578063e6a4390511610059578063e6a4390514610493578063ed5fe921146104b3578063f205a042146104da57600080fd5b8063d349e7251461042c578063d547741f1461043f578063ddca3f431461045f57600080fd5b8063a217fddf116100b0578063a217fddf146103d7578063c1791e92146103ec578063d263ed741461040c57600080fd5b806391d14854146103735780639bed9f10146103b757600080fd5b80632f2ff15d1161012d578063521eb27311610107578063521eb273146102e25780635b1f29421461032e578063785c7cf61461034157600080fd5b80632f2ff15d1461026e57806336568abe1461028e5780633c934ab3146102ae57600080fd5b806312b83f051161015e57806312b83f05146101dc578063248a9ca31461020a5780632a0acc6a1461023a57600080fd5b806301ffc9a7146101855780631280b03a146101ba57600080fd5b3661018057005b600080fd5b34801561019157600080fd5b506101a56101a03660046128c5565b6104fa565b60405190151581526020015b60405180910390f35b3480156101c657600080fd5b506101da6101d53660046129e3565b610563565b005b3480156101e857600080fd5b506101fc6101f7366004612a46565b610737565b6040519081526020016101b1565b34801561021657600080fd5b506101fc610225366004612a8d565b60009081526020819052604090206001015490565b34801561024657600080fd5b506101fc7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b34801561027a57600080fd5b506101da610289366004612aa6565b61085f565b34801561029a57600080fd5b506101da6102a9366004612aa6565b610889565b3480156102ba57600080fd5b506101fc7f2714cbbaddbb71bcae9366d8bf7770636ec7ae63227b573986d2f54fffacb39d81565b3480156102ee57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101b1565b6101da61033c366004612a46565b610915565b34801561034d57600080fd5b5061036161035c366004612ad6565b610bb9565b60405160ff90911681526020016101b1565b34801561037f57600080fd5b506101a561038e366004612aa6565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156103c357600080fd5b506101da6103d2366004612af3565b610c2c565b3480156103e357600080fd5b506101fc600081565b3480156103f857600080fd5b506101da6104073660046129e3565b610eae565b34801561041857600080fd5b506101fc610427366004612a46565b611102565b6101da61043a366004612b43565b6111d3565b34801561044b57600080fd5b506101da61045a366004612aa6565b6113ff565b34801561046b57600080fd5b506101fc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561049f57600080fd5b506103166104ae366004612b86565b611424565b3480156104bf57600080fd5b50737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac610316565b3480156104e657600080fd5b506101da6104f5366004612af3565b6114de565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061055d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b806002815110156105aa5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064015b60405180910390fd5b6000826000815181106105bf576105bf612bb4565b602090810291909101015190506105e16001600160a01b0382168530896116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561062357600080fd5b505afa158015610637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065b9190612bca565b90506106678282611787565b60006127106106967f000000000000000000000000000000000000000000000000000000000000000084612bf9565b6106a09190612c18565b905060006106ae8284612c3a565b604051635c11d79560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d795906106f09084908c908b908d904290600401612c95565b600060405180830381600087803b15801561070a57600080fd5b505af115801561071e573d6000803e3d6000fd5b5050505061072c8287611993565b505050505050505050565b6000806127106107677f000000000000000000000000000000000000000000000000000000000000000086612bf9565b6107719190612c18565b9050600061077f8286612c3a565b6040517fd06ca61f000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063d06ca61f906107d79085908990600401612cd1565b60006040518083038186803b1580156107ef57600080fd5b505afa158015610803573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261082b9190810190612cea565b9050806001825161083c9190612c3a565b8151811061084c5761084c612bb4565b6020026020010151935050505092915050565b60008281526020819052604090206001015461087a8161209f565b61088483836120ac565b505050565b6001600160a01b03811633146109075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105a1565b610911828261214a565b5050565b806002815110156109575760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600184516109689190612c3a565b8151811061097857610978612bb4565b6020026020010151905060003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b03161415610a71577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610a1c57600080fd5b505af1158015610a30573d6000803e3d6000fd5b50610a6c9350506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169150339050836121c9565b610bb2565b6000612710610aa07f000000000000000000000000000000000000000000000000000000000000000084612bf9565b610aaa9190612c18565b90506000610ab88284612c3a565b6040517ffb3bdb41000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063fb3bdb41908490610b16908c908c9033904290600401612d70565b6000604051808303818588803b158015610b2f57600080fd5b505af1158015610b43573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610b6c9190810190612cea565b9050600081600081518110610b8357610b83612bb4565b602002602001015183610b969190612c3a565b90508015610ba857610ba83382612212565b61072c8489611993565b5050505050565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610bf457600080fd5b505afa158015610c08573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055d9190612da5565b80600281511015610c6e5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610c8357610c83612bb4565b60209081029190910101519050610ca56001600160a01b0382163330876116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610ce757600080fd5b505afa158015610cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1f9190612bca565b9050610d2b8282611787565b6000612710610d5a7f000000000000000000000000000000000000000000000000000000000000000084612bf9565b610d649190612c18565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d638803dbee89610d8d8587612c3a565b8933426040518663ffffffff1660e01b8152600401610db0959493929190612c95565b600060405180830381600087803b158015610dca57600080fd5b505af1158015610dde573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e069190810190612cea565b9050600081600081518110610e1d57610e1d612bb4565b6020026020010151905060006127107f000000000000000000000000000000000000000000000000000000000000000083610e589190612bf9565b610e629190612c18565b9050600081610e718488612c3a565b610e7b9190612c3a565b90508015610e9757610e976001600160a01b03881633836121c9565b610ea1828a611993565b5050505050505050505050565b80600281511015610ef05760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610f0557610f05612bb4565b60209081029190910101519050610f276001600160a01b0382168530896116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610f6957600080fd5b505afa158015610f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa19190612bca565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561106657604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561103f57600080fd5b505af1158015611053573d6000803e3d6000fd5b505050506110618582612212565b6110f9565b6110708282611787565b600061271061109f7f000000000000000000000000000000000000000000000000000000000000000084612bf9565b6110a99190612c18565b905060006110b78284612c3a565b60405163791ac94760e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906106f09084908c908b908d904290600401612c95565b50505050505050565b6040517f1f00ca740000000000000000000000000000000000000000000000000000000081526000908190737a250d5630b4cf539739df2c5dacb4c659f2488d90631f00ca74906111599087908790600401612cd1565b60006040518083038186803b15801561117157600080fd5b505afa158015611185573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111ad9190810190612cea565b9050806000815181106111c2576111c2612bb4565b602002602001015191505092915050565b806002815110156112155760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600184516112269190612c3a565b8151811061123657611236612bb4565b6020026020010151905060003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561132f577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156112da57600080fd5b505af11580156112ee573d6000803e3d6000fd5b5061132a9350506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169150879050836121c9565b6113f7565b600061271061135e7f000000000000000000000000000000000000000000000000000000000000000084612bf9565b6113689190612c18565b905060006113768284612c3a565b60405163b6f9de9560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de959083906113b8908c908b908d904290600401612d70565b6000604051808303818588803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b50505050506113f48287611993565b50505b505050505050565b60008281526020819052604090206001015461141a8161209f565b610884838361214a565b6000735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152919091169063e6a439059060440160206040518083038186803b15801561149f57600080fd5b505afa1580156114b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d79190612dc8565b9392505050565b806002815110156115205760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b60008260008151811061153557611535612bb4565b602090810291909101015190506115576001600160a01b0382163330876116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d19190612bca565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316141561169157604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561166f57600080fd5b505af1158015611683573d6000803e3d6000fd5b5050505061132a3382612212565b61169b8282611787565b60006127106116ca7f000000000000000000000000000000000000000000000000000000000000000084612bf9565b6116d49190612c18565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d634a25d94a89610d8d8587612c3a565b6040516001600160a01b03808516602483015283166044820152606481018290526117819085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526122b5565b50505050565b60006001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526000604482015260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516117fa9190612e11565b6000604051808303816000865af19150503d8060008114611837576040519150601f19603f3d011682016040523d82523d6000602084013e61183c565b606091505b505090508061188d5760405162461bcd60e51b815260206004820152601760248201527f417070726f76616c20746f207a65726f206661696c656400000000000000000060448201526064016105a1565b6001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526044810184905260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516118fe9190612e11565b6000604051808303816000865af19150503d806000811461193b576040519150601f19603f3d011682016040523d82523d6000602084013e611940565b606091505b505080915050806108845760405162461bcd60e51b815260206004820152600f60248201527f417070726f76616c206661696c6564000000000000000000000000000000000060448201526064016105a1565b6000816000815181106119a8576119a8612bb4565b60200260200101519050600082600184516119c39190612c3a565b815181106119d3576119d3612bb4565b6020026020010151905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614611ab65760405163753d756360e01b81526001600160a01b0384811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063753d75639060240160206040518083038186803b158015611a7957600080fd5b505afa158015611a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab19190612e2d565b611ab9565b60015b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614611b945760405163753d756360e01b81526001600160a01b0384811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063753d75639060240160206040518083038186803b158015611b5757600080fd5b505afa158015611b6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8f9190612e2d565b611b97565b60015b9050818015611ba35750805b15611cf3577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161415611c0c5761132a7f000000000000000000000000000000000000000000000000000000000000000087612212565b6000611c178661239a565b90506002815110611cb95760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611c82908a9060009086907f0000000000000000000000000000000000000000000000000000000000000000904290600401612c95565b600060405180830381600087803b158015611c9c57600080fd5b505af1158015611cb0573d6000803e3d6000fd5b50505050611ced565b611ced6001600160a01b0386167f0000000000000000000000000000000000000000000000000000000000000000896121c9565b506113f7565b8015611e50576001600160a01b038416737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac1415611d345761132a6001600160a01b03851661dead886121c9565b6000611d41600288612c18565b9050611d596001600160a01b03861661dead836121c9565b6000611d658289612c3a565b90506000611d728861239a565b90506002815110611e145760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611ddd90859060009086907f0000000000000000000000000000000000000000000000000000000000000000904290600401612c95565b600060405180830381600087803b158015611df757600080fd5b505af1158015611e0b573d6000803e3d6000fd5b50505050611e48565b611e486001600160a01b0388167f0000000000000000000000000000000000000000000000000000000000000000846121c9565b5050506113f7565b6000611e5d600288612c18565b90506000611e6b8289612c3a565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316866001600160a01b03161415611f4a5760405163b6f9de9560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de95908490611ee9906000908c9061dead904290600401612d70565b6000604051808303818588803b158015611f0257600080fd5b505af1158015611f16573d6000803e3d6000fd5b5050505050611f457f000000000000000000000000000000000000000000000000000000000000000082612212565b6113f4565b604051635c11d79560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d79590611f8c9085906000908c9061dead904290600401612c95565b600060405180830381600087803b158015611fa657600080fd5b505af1158015611fba573d6000803e3d6000fd5b505050506000611fc98861239a565b9050600281511061206b5760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac9479061203490859060009086907f0000000000000000000000000000000000000000000000000000000000000000904290600401612c95565b600060405180830381600087803b15801561204e57600080fd5b505af1158015612062573d6000803e3d6000fd5b5050505061072c565b61072c6001600160a01b0388167f0000000000000000000000000000000000000000000000000000000000000000846121c9565b6120a981336124ce565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610911576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556121063390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610911576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b0383166024820152604481018290526108849084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640161174a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461225f576040519150601f19603f3d011682016040523d82523d6000602084013e612264565b606091505b50509050806108845760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016105a1565b600061230a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661254c9092919063ffffffff16565b80519091501561088457808060200190518101906123289190612e2d565b6108845760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105a1565b60606000805b8351811015612420577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168482815181106123e5576123e5612bb4565b60200260200101516001600160a01b0316141561240e57612407816001612e4f565b9150612420565b8061241881612e67565b9150506123a0565b508067ffffffffffffffff81111561243a5761243a612904565b604051908082528060200260200182016040528015612463578160200160208202803683370190505b50915060005b818110156124c75783818151811061248357612483612bb4565b602002602001015183828151811061249d5761249d612bb4565b6001600160a01b0390921660209283029190910190910152806124bf81612e67565b915050612469565b5050919050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166109115761250a816001600160a01b03166014612563565b612515836020612563565b604051602001612526929190612e82565b60408051601f198184030181529082905262461bcd60e51b82526105a191600401612f03565b606061255b8484600085612744565b949350505050565b60606000612572836002612bf9565b61257d906002612e4f565b67ffffffffffffffff81111561259557612595612904565b6040519080825280601f01601f1916602001820160405280156125bf576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106125f6576125f6612bb4565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061264157612641612bb4565b60200101906001600160f81b031916908160001a9053506000612665846002612bf9565b612670906001612e4f565b90505b60018111156126f5577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106126b1576126b1612bb4565b1a60f81b8282815181106126c7576126c7612bb4565b60200101906001600160f81b031916908160001a90535060049490941c936126ee81612f36565b9050612673565b5083156114d75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105a1565b6060824710156127bc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105a1565b6001600160a01b0385163b6128135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105a1565b600080866001600160a01b0316858760405161282f9190612e11565b60006040518083038185875af1925050503d806000811461286c576040519150601f19603f3d011682016040523d82523d6000602084013e612871565b606091505b509150915061288182828661288c565b979650505050505050565b6060831561289b5750816114d7565b8251156128ab5782518084602001fd5b8160405162461bcd60e51b81526004016105a19190612f03565b6000602082840312156128d757600080fd5b81356001600160e01b0319811681146114d757600080fd5b6001600160a01b03811681146120a957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561294357612943612904565b604052919050565b600067ffffffffffffffff82111561296557612965612904565b5060051b60200190565b600082601f83011261298057600080fd5b813560206129956129908361294b565b61291a565b82815260059290921b840181019181810190868411156129b457600080fd5b8286015b848110156129d85780356129cb816128ef565b83529183019183016129b8565b509695505050505050565b600080600080608085870312156129f957600080fd5b84359350602085013592506040850135612a12816128ef565b9150606085013567ffffffffffffffff811115612a2e57600080fd5b612a3a8782880161296f565b91505092959194509250565b60008060408385031215612a5957600080fd5b82359150602083013567ffffffffffffffff811115612a7757600080fd5b612a838582860161296f565b9150509250929050565b600060208284031215612a9f57600080fd5b5035919050565b60008060408385031215612ab957600080fd5b823591506020830135612acb816128ef565b809150509250929050565b600060208284031215612ae857600080fd5b81356114d7816128ef565b600080600060608486031215612b0857600080fd5b8335925060208401359150604084013567ffffffffffffffff811115612b2d57600080fd5b612b398682870161296f565b9150509250925092565b600080600060608486031215612b5857600080fd5b833592506020840135612b6a816128ef565b9150604084013567ffffffffffffffff811115612b2d57600080fd5b60008060408385031215612b9957600080fd5b8235612ba4816128ef565b91506020830135612acb816128ef565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612bdc57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612c1357612c13612be3565b500290565b600082612c3557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612c4c57612c4c612be3565b500390565b600081518084526020808501945080840160005b83811015612c8a5781516001600160a01b031687529582019590820190600101612c65565b509495945050505050565b85815284602082015260a060408201526000612cb460a0830186612c51565b6001600160a01b0394909416606083015250608001529392505050565b82815260406020820152600061255b6040830184612c51565b60006020808385031215612cfd57600080fd5b825167ffffffffffffffff811115612d1457600080fd5b8301601f81018513612d2557600080fd5b8051612d336129908261294b565b81815260059190911b82018301908381019087831115612d5257600080fd5b928401925b8284101561288157835182529284019290840190612d57565b848152608060208201526000612d896080830186612c51565b6001600160a01b03949094166040830152506060015292915050565b600060208284031215612db757600080fd5b815160ff811681146114d757600080fd5b600060208284031215612dda57600080fd5b81516114d7816128ef565b60005b83811015612e00578181015183820152602001612de8565b838111156117815750506000910152565b60008251612e23818460208701612de5565b9190910192915050565b600060208284031215612e3f57600080fd5b815180151581146114d757600080fd5b60008219821115612e6257612e62612be3565b500190565b6000600019821415612e7b57612e7b612be3565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612eba816017850160208801612de5565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612ef7816028840160208801612de5565b01602801949350505050565b6020815260008251806020840152612f22816040850160208701612de5565b601f01601f19169190910160400192915050565b600081612f4557612f45612be3565b50600019019056fea26469706673582212202e1c3feb0d9eb3e7691f2f19fb67f155e3dcf4ecc016c1f305dca1e19203fbee64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000003200000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d
Deployed Bytecode
0x6080604052600436106101795760003560e01c806391d14854116100cb578063d349e7251161007f578063e6a4390511610059578063e6a4390514610493578063ed5fe921146104b3578063f205a042146104da57600080fd5b8063d349e7251461042c578063d547741f1461043f578063ddca3f431461045f57600080fd5b8063a217fddf116100b0578063a217fddf146103d7578063c1791e92146103ec578063d263ed741461040c57600080fd5b806391d14854146103735780639bed9f10146103b757600080fd5b80632f2ff15d1161012d578063521eb27311610107578063521eb273146102e25780635b1f29421461032e578063785c7cf61461034157600080fd5b80632f2ff15d1461026e57806336568abe1461028e5780633c934ab3146102ae57600080fd5b806312b83f051161015e57806312b83f05146101dc578063248a9ca31461020a5780632a0acc6a1461023a57600080fd5b806301ffc9a7146101855780631280b03a146101ba57600080fd5b3661018057005b600080fd5b34801561019157600080fd5b506101a56101a03660046128c5565b6104fa565b60405190151581526020015b60405180910390f35b3480156101c657600080fd5b506101da6101d53660046129e3565b610563565b005b3480156101e857600080fd5b506101fc6101f7366004612a46565b610737565b6040519081526020016101b1565b34801561021657600080fd5b506101fc610225366004612a8d565b60009081526020819052604090206001015490565b34801561024657600080fd5b506101fc7fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4281565b34801561027a57600080fd5b506101da610289366004612aa6565b61085f565b34801561029a57600080fd5b506101da6102a9366004612aa6565b610889565b3480156102ba57600080fd5b506101fc7f2714cbbaddbb71bcae9366d8bf7770636ec7ae63227b573986d2f54fffacb39d81565b3480156102ee57600080fd5b506103167f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d81565b6040516001600160a01b0390911681526020016101b1565b6101da61033c366004612a46565b610915565b34801561034d57600080fd5b5061036161035c366004612ad6565b610bb9565b60405160ff90911681526020016101b1565b34801561037f57600080fd5b506101a561038e366004612aa6565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b3480156103c357600080fd5b506101da6103d2366004612af3565b610c2c565b3480156103e357600080fd5b506101fc600081565b3480156103f857600080fd5b506101da6104073660046129e3565b610eae565b34801561041857600080fd5b506101fc610427366004612a46565b611102565b6101da61043a366004612b43565b6111d3565b34801561044b57600080fd5b506101da61045a366004612aa6565b6113ff565b34801561046b57600080fd5b506101fc7f000000000000000000000000000000000000000000000000000000000000003281565b34801561049f57600080fd5b506103166104ae366004612b86565b611424565b3480156104bf57600080fd5b50737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac610316565b3480156104e657600080fd5b506101da6104f5366004612af3565b6114de565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061055d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b806002815110156105aa5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064015b60405180910390fd5b6000826000815181106105bf576105bf612bb4565b602090810291909101015190506105e16001600160a01b0382168530896116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561062357600080fd5b505afa158015610637573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061065b9190612bca565b90506106678282611787565b60006127106106967f000000000000000000000000000000000000000000000000000000000000003284612bf9565b6106a09190612c18565b905060006106ae8284612c3a565b604051635c11d79560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d795906106f09084908c908b908d904290600401612c95565b600060405180830381600087803b15801561070a57600080fd5b505af115801561071e573d6000803e3d6000fd5b5050505061072c8287611993565b505050505050505050565b6000806127106107677f000000000000000000000000000000000000000000000000000000000000003286612bf9565b6107719190612c18565b9050600061077f8286612c3a565b6040517fd06ca61f000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063d06ca61f906107d79085908990600401612cd1565b60006040518083038186803b1580156107ef57600080fd5b505afa158015610803573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261082b9190810190612cea565b9050806001825161083c9190612c3a565b8151811061084c5761084c612bb4565b6020026020010151935050505092915050565b60008281526020819052604090206001015461087a8161209f565b61088483836120ac565b505050565b6001600160a01b03811633146109075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084016105a1565b610911828261214a565b5050565b806002815110156109575760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600184516109689190612c3a565b8151811061097857610978612bb4565b6020026020010151905060003490507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b03161415610a71577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610a1c57600080fd5b505af1158015610a30573d6000803e3d6000fd5b50610a6c9350506001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2169150339050836121c9565b610bb2565b6000612710610aa07f000000000000000000000000000000000000000000000000000000000000003284612bf9565b610aaa9190612c18565b90506000610ab88284612c3a565b6040517ffb3bdb41000000000000000000000000000000000000000000000000000000008152909150600090737a250d5630b4cf539739df2c5dacb4c659f2488d9063fb3bdb41908490610b16908c908c9033904290600401612d70565b6000604051808303818588803b158015610b2f57600080fd5b505af1158015610b43573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052610b6c9190810190612cea565b9050600081600081518110610b8357610b83612bb4565b602002602001015183610b969190612c3a565b90508015610ba857610ba83382612212565b61072c8489611993565b5050505050565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610bf457600080fd5b505afa158015610c08573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055d9190612da5565b80600281511015610c6e5760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610c8357610c83612bb4565b60209081029190910101519050610ca56001600160a01b0382163330876116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610ce757600080fd5b505afa158015610cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1f9190612bca565b9050610d2b8282611787565b6000612710610d5a7f000000000000000000000000000000000000000000000000000000000000003284612bf9565b610d649190612c18565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d638803dbee89610d8d8587612c3a565b8933426040518663ffffffff1660e01b8152600401610db0959493929190612c95565b600060405180830381600087803b158015610dca57600080fd5b505af1158015610dde573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610e069190810190612cea565b9050600081600081518110610e1d57610e1d612bb4565b6020026020010151905060006127107f000000000000000000000000000000000000000000000000000000000000003283610e589190612bf9565b610e629190612c18565b9050600081610e718488612c3a565b610e7b9190612c3a565b90508015610e9757610e976001600160a01b03881633836121c9565b610ea1828a611993565b5050505050505050505050565b80600281511015610ef05760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600081518110610f0557610f05612bb4565b60209081029190910101519050610f276001600160a01b0382168530896116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b158015610f6957600080fd5b505afa158015610f7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa19190612bca565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b0316141561106657604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561103f57600080fd5b505af1158015611053573d6000803e3d6000fd5b505050506110618582612212565b6110f9565b6110708282611787565b600061271061109f7f000000000000000000000000000000000000000000000000000000000000003284612bf9565b6110a99190612c18565b905060006110b78284612c3a565b60405163791ac94760e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac947906106f09084908c908b908d904290600401612c95565b50505050505050565b6040517f1f00ca740000000000000000000000000000000000000000000000000000000081526000908190737a250d5630b4cf539739df2c5dacb4c659f2488d90631f00ca74906111599087908790600401612cd1565b60006040518083038186803b15801561117157600080fd5b505afa158015611185573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111ad9190810190612cea565b9050806000815181106111c2576111c2612bb4565b602002602001015191505092915050565b806002815110156112155760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b600082600184516112269190612c3a565b8151811061123657611236612bb4565b6020026020010151905060003490507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b0316141561132f577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156112da57600080fd5b505af11580156112ee573d6000803e3d6000fd5b5061132a9350506001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2169150879050836121c9565b6113f7565b600061271061135e7f000000000000000000000000000000000000000000000000000000000000003284612bf9565b6113689190612c18565b905060006113768284612c3a565b60405163b6f9de9560e01b8152909150737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de959083906113b8908c908b908d904290600401612d70565b6000604051808303818588803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b50505050506113f48287611993565b50505b505050505050565b60008281526020819052604090206001015461141a8161209f565b610884838361214a565b6000735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f6040517fe6a439050000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301528481166024830152919091169063e6a439059060440160206040518083038186803b15801561149f57600080fd5b505afa1580156114b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d79190612dc8565b9392505050565b806002815110156115205760405162461bcd60e51b815260206004820152600c60248201526b0929cac82989288bea082a8960a31b60448201526064016105a1565b60008260008151811061153557611535612bb4565b602090810291909101015190506115576001600160a01b0382163330876116fd565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561159957600080fd5b505afa1580156115ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d19190612bca565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b0316141561169157604051632e1a7d4d60e01b8152600481018290527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561166f57600080fd5b505af1158015611683573d6000803e3d6000fd5b5050505061132a3382612212565b61169b8282611787565b60006127106116ca7f000000000000000000000000000000000000000000000000000000000000003284612bf9565b6116d49190612c18565b90506000737a250d5630b4cf539739df2c5dacb4c659f2488d634a25d94a89610d8d8587612c3a565b6040516001600160a01b03808516602483015283166044820152606481018290526117819085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526122b5565b50505050565b60006001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526000604482015260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516117fa9190612e11565b6000604051808303816000865af19150503d8060008114611837576040519150601f19603f3d011682016040523d82523d6000602084013e61183c565b606091505b505090508061188d5760405162461bcd60e51b815260206004820152601760248201527f417070726f76616c20746f207a65726f206661696c656400000000000000000060448201526064016105a1565b6001600160a01b038316737a250d5630b4cf539739df2c5dacb4c659f2488d6040516001600160a01b0390911660248201526044810184905260640160408051601f198184030181529181526020820180516001600160e01b031663095ea7b360e01b179052516118fe9190612e11565b6000604051808303816000865af19150503d806000811461193b576040519150601f19603f3d011682016040523d82523d6000602084013e611940565b606091505b505080915050806108845760405162461bcd60e51b815260206004820152600f60248201527f417070726f76616c206661696c6564000000000000000000000000000000000060448201526064016105a1565b6000816000815181106119a8576119a8612bb4565b60200260200101519050600082600184516119c39190612c3a565b815181106119d3576119d3612bb4565b6020026020010151905060007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b031614611ab65760405163753d756360e01b81526001600160a01b0384811660048301527f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d169063753d75639060240160206040518083038186803b158015611a7957600080fd5b505afa158015611a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab19190612e2d565b611ab9565b60015b905060007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b031614611b945760405163753d756360e01b81526001600160a01b0384811660048301527f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d169063753d75639060240160206040518083038186803b158015611b5757600080fd5b505afa158015611b6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8f9190612e2d565b611b97565b60015b9050818015611ba35750805b15611cf3577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316846001600160a01b03161415611c0c5761132a7f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d87612212565b6000611c178661239a565b90506002815110611cb95760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611c82908a9060009086907f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d904290600401612c95565b600060405180830381600087803b158015611c9c57600080fd5b505af1158015611cb0573d6000803e3d6000fd5b50505050611ced565b611ced6001600160a01b0386167f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d896121c9565b506113f7565b8015611e50576001600160a01b038416737db5af2b9624e1b3b4bb69d6debd9ad1016a58ac1415611d345761132a6001600160a01b03851661dead886121c9565b6000611d41600288612c18565b9050611d596001600160a01b03861661dead836121c9565b6000611d658289612c3a565b90506000611d728861239a565b90506002815110611e145760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac94790611ddd90859060009086907f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d904290600401612c95565b600060405180830381600087803b158015611df757600080fd5b505af1158015611e0b573d6000803e3d6000fd5b50505050611e48565b611e486001600160a01b0388167f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d846121c9565b5050506113f7565b6000611e5d600288612c18565b90506000611e6b8289612c3a565b90507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316866001600160a01b03161415611f4a5760405163b6f9de9560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063b6f9de95908490611ee9906000908c9061dead904290600401612d70565b6000604051808303818588803b158015611f0257600080fd5b505af1158015611f16573d6000803e3d6000fd5b5050505050611f457f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d82612212565b6113f4565b604051635c11d79560e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d90635c11d79590611f8c9085906000908c9061dead904290600401612c95565b600060405180830381600087803b158015611fa657600080fd5b505af1158015611fba573d6000803e3d6000fd5b505050506000611fc98861239a565b9050600281511061206b5760405163791ac94760e01b8152737a250d5630b4cf539739df2c5dacb4c659f2488d9063791ac9479061203490859060009086907f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d904290600401612c95565b600060405180830381600087803b15801561204e57600080fd5b505af1158015612062573d6000803e3d6000fd5b5050505061072c565b61072c6001600160a01b0388167f00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d846121c9565b6120a981336124ce565b50565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610911576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556121063390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610911576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6040516001600160a01b0383166024820152604481018290526108849084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640161174a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461225f576040519150601f19603f3d011682016040523d82523d6000602084013e612264565b606091505b50509050806108845760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064016105a1565b600061230a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661254c9092919063ffffffff16565b80519091501561088457808060200190518101906123289190612e2d565b6108845760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016105a1565b60606000805b8351811015612420577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03168482815181106123e5576123e5612bb4565b60200260200101516001600160a01b0316141561240e57612407816001612e4f565b9150612420565b8061241881612e67565b9150506123a0565b508067ffffffffffffffff81111561243a5761243a612904565b604051908082528060200260200182016040528015612463578160200160208202803683370190505b50915060005b818110156124c75783818151811061248357612483612bb4565b602002602001015183828151811061249d5761249d612bb4565b6001600160a01b0390921660209283029190910190910152806124bf81612e67565b915050612469565b5050919050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166109115761250a816001600160a01b03166014612563565b612515836020612563565b604051602001612526929190612e82565b60408051601f198184030181529082905262461bcd60e51b82526105a191600401612f03565b606061255b8484600085612744565b949350505050565b60606000612572836002612bf9565b61257d906002612e4f565b67ffffffffffffffff81111561259557612595612904565b6040519080825280601f01601f1916602001820160405280156125bf576020820181803683370190505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106125f6576125f6612bb4565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061264157612641612bb4565b60200101906001600160f81b031916908160001a9053506000612665846002612bf9565b612670906001612e4f565b90505b60018111156126f5577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106126b1576126b1612bb4565b1a60f81b8282815181106126c7576126c7612bb4565b60200101906001600160f81b031916908160001a90535060049490941c936126ee81612f36565b9050612673565b5083156114d75760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105a1565b6060824710156127bc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016105a1565b6001600160a01b0385163b6128135760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016105a1565b600080866001600160a01b0316858760405161282f9190612e11565b60006040518083038185875af1925050503d806000811461286c576040519150601f19603f3d011682016040523d82523d6000602084013e612871565b606091505b509150915061288182828661288c565b979650505050505050565b6060831561289b5750816114d7565b8251156128ab5782518084602001fd5b8160405162461bcd60e51b81526004016105a19190612f03565b6000602082840312156128d757600080fd5b81356001600160e01b0319811681146114d757600080fd5b6001600160a01b03811681146120a957600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561294357612943612904565b604052919050565b600067ffffffffffffffff82111561296557612965612904565b5060051b60200190565b600082601f83011261298057600080fd5b813560206129956129908361294b565b61291a565b82815260059290921b840181019181810190868411156129b457600080fd5b8286015b848110156129d85780356129cb816128ef565b83529183019183016129b8565b509695505050505050565b600080600080608085870312156129f957600080fd5b84359350602085013592506040850135612a12816128ef565b9150606085013567ffffffffffffffff811115612a2e57600080fd5b612a3a8782880161296f565b91505092959194509250565b60008060408385031215612a5957600080fd5b82359150602083013567ffffffffffffffff811115612a7757600080fd5b612a838582860161296f565b9150509250929050565b600060208284031215612a9f57600080fd5b5035919050565b60008060408385031215612ab957600080fd5b823591506020830135612acb816128ef565b809150509250929050565b600060208284031215612ae857600080fd5b81356114d7816128ef565b600080600060608486031215612b0857600080fd5b8335925060208401359150604084013567ffffffffffffffff811115612b2d57600080fd5b612b398682870161296f565b9150509250925092565b600080600060608486031215612b5857600080fd5b833592506020840135612b6a816128ef565b9150604084013567ffffffffffffffff811115612b2d57600080fd5b60008060408385031215612b9957600080fd5b8235612ba4816128ef565b91506020830135612acb816128ef565b634e487b7160e01b600052603260045260246000fd5b600060208284031215612bdc57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612c1357612c13612be3565b500290565b600082612c3557634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612c4c57612c4c612be3565b500390565b600081518084526020808501945080840160005b83811015612c8a5781516001600160a01b031687529582019590820190600101612c65565b509495945050505050565b85815284602082015260a060408201526000612cb460a0830186612c51565b6001600160a01b0394909416606083015250608001529392505050565b82815260406020820152600061255b6040830184612c51565b60006020808385031215612cfd57600080fd5b825167ffffffffffffffff811115612d1457600080fd5b8301601f81018513612d2557600080fd5b8051612d336129908261294b565b81815260059190911b82018301908381019087831115612d5257600080fd5b928401925b8284101561288157835182529284019290840190612d57565b848152608060208201526000612d896080830186612c51565b6001600160a01b03949094166040830152506060015292915050565b600060208284031215612db757600080fd5b815160ff811681146114d757600080fd5b600060208284031215612dda57600080fd5b81516114d7816128ef565b60005b83811015612e00578181015183820152602001612de8565b838111156117815750506000910152565b60008251612e23818460208701612de5565b9190910192915050565b600060208284031215612e3f57600080fd5b815180151581146114d757600080fd5b60008219821115612e6257612e62612be3565b500190565b6000600019821415612e7b57612e7b612be3565b5060010190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612eba816017850160208801612de5565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351612ef7816028840160208801612de5565b01602801949350505050565b6020815260008251806020840152612f22816040850160208701612de5565b601f01601f19169190910160400192915050565b600081612f4557612f45612be3565b50600019019056fea26469706673582212202e1c3feb0d9eb3e7691f2f19fb67f155e3dcf4ecc016c1f305dca1e19203fbee64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000003200000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d
-----Decoded View---------------
Arg [0] : _fee (uint256): 50
Arg [1] : _addr (address): 0x33771dF3Ca1ca26D7eff1D0B927de09903046A5d
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [1] : 00000000000000000000000033771df3ca1ca26d7eff1d0b927de09903046a5d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.