Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 517 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 21246675 | 7 hrs ago | IN | 3.29 ETH | 0.00350795 | ||||
Deposit | 21244698 | 14 hrs ago | IN | 500 ETH | 0.0059269 | ||||
Deposit | 21242655 | 21 hrs ago | IN | 200 ETH | 0.00515838 | ||||
Withdraw | 21241208 | 25 hrs ago | IN | 0 ETH | 0.00420198 | ||||
Deposit | 21238995 | 33 hrs ago | IN | 1.58 ETH | 0.00324138 | ||||
Deposit | 21237898 | 37 hrs ago | IN | 4.95 ETH | 0.00668726 | ||||
Deposit | 21235295 | 45 hrs ago | IN | 90 ETH | 0.00450538 | ||||
Deposit | 21235287 | 45 hrs ago | IN | 10 ETH | 0.0043149 | ||||
Deposit | 21235276 | 45 hrs ago | IN | 100 ETH | 0.00203067 | ||||
Withdraw | 21233465 | 2 days ago | IN | 0 ETH | 0.0037135 | ||||
Withdraw | 21233442 | 2 days ago | IN | 0 ETH | 0.00351401 | ||||
Withdraw | 21231345 | 2 days ago | IN | 0 ETH | 0.00577933 | ||||
Withdraw | 21231131 | 2 days ago | IN | 0 ETH | 0.00735835 | ||||
Withdraw | 21227464 | 3 days ago | IN | 0 ETH | 0.00231382 | ||||
Deposit | 21226731 | 3 days ago | IN | 82 ETH | 0.00268952 | ||||
Deposit | 21224683 | 3 days ago | IN | 6.5 ETH | 0.00426623 | ||||
Deposit | 21220967 | 3 days ago | IN | 13.2 ETH | 0.0035227 | ||||
Deposit | 21216739 | 4 days ago | IN | 1 ETH | 0.00748222 | ||||
Deposit | 21216713 | 4 days ago | IN | 5.4 ETH | 0.00558664 | ||||
Withdraw | 21215733 | 4 days ago | IN | 0 ETH | 0.01087864 | ||||
Deposit | 21215489 | 4 days ago | IN | 300 ETH | 0.00592681 | ||||
Deposit | 21208055 | 5 days ago | IN | 150 ETH | 0.00432649 | ||||
Withdraw | 21207691 | 5 days ago | IN | 0 ETH | 0.00389663 | ||||
Withdraw | 21207397 | 5 days ago | IN | 0 ETH | 0.00495482 | ||||
Withdraw | 21206564 | 5 days ago | IN | 0 ETH | 0.00247701 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
21246675 | 7 hrs ago | 3.29 ETH | ||||
21244698 | 14 hrs ago | 500 ETH | ||||
21242655 | 21 hrs ago | 200 ETH | ||||
21241208 | 25 hrs ago | 3.93957124 ETH | ||||
21241208 | 25 hrs ago | 3.93957124 ETH | ||||
21238995 | 33 hrs ago | 1.58 ETH | ||||
21237898 | 37 hrs ago | 4.95 ETH | ||||
21235727 | 44 hrs ago | 65 ETH | ||||
21235727 | 44 hrs ago | 65 ETH | ||||
21235295 | 45 hrs ago | 90 ETH | ||||
21235287 | 45 hrs ago | 10 ETH | ||||
21235276 | 45 hrs ago | 100 ETH | ||||
21233465 | 2 days ago | 2.80207278 ETH | ||||
21233465 | 2 days ago | 2.80207278 ETH | ||||
21233442 | 2 days ago | 0.98855292 ETH | ||||
21233442 | 2 days ago | 0.98855292 ETH | ||||
21231345 | 2 days ago | 9.99253853 ETH | ||||
21231345 | 2 days ago | 9.99253853 ETH | ||||
21231131 | 2 days ago | 4.03603995 ETH | ||||
21231131 | 2 days ago | 4.03603995 ETH | ||||
21227464 | 3 days ago | 4.62933316 ETH | ||||
21227464 | 3 days ago | 4.62933316 ETH | ||||
21226731 | 3 days ago | 82 ETH | ||||
21224683 | 3 days ago | 6.5 ETH | ||||
21220967 | 3 days ago | 13.2 ETH |
Loading...
Loading
Contract Name:
EthVaultWrapperV2
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; import {SafeERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import {IERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/interfaces/IERC20Upgradeable.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; interface IUserModule is IERC20Upgradeable { function deposit( uint256 assets_, address receiver_ ) external returns (uint256 shares_); function withdraw( uint256 assets_, address receiver_, address owner_ ) external returns (uint256 shares_); function getWithdrawFee( uint256 stEthAmount_ ) external view returns (uint256); } contract Events { event LogUpdateWhitelist( string indexed name, address whitelistedRouter, address whitelistedApproval, bool indexed status ); event LogUpdateWhitelistStatus(string indexed name, bool indexed status); event LogRescueFunds(address indexed token, uint256 indexed amount); } contract ConstantVariables { struct RouterHelper { address router; address approval; bool status; } IERC20Upgradeable internal constant STETH = IERC20Upgradeable(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84); /// @notice Rescue funds will be transfered to this address upon collection. address public constant RESCUE_TRANSFERS = 0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e; } contract EthVaultWrapperV2 is Ownable, Events, ConstantVariables { using SafeERC20Upgradeable for IERC20Upgradeable; error EthVaultWrapper__OutputInsufficient(); error EthVaultWrapper__UnexpectedWithdrawAmount(); error EthVaultWrapper__InvalidInput(); error EthVaultWrapper__OnlyWhitelisted(); /***********************************| | STATE VARIABLES | |__________________________________*/ IUserModule internal immutable vault; /// @notice mapping to store allowed route names to their /// whitelisted router, approval address and status. mapping(string => RouterHelper) public whitelistedRoutes; constructor(address vault_, address owner_) { vault = IUserModule(vault_); // approve stETH to vault for deposits STETH.approve(vault_, type(uint256).max); _transferOwnership(owner_); // Whitelist routes whitelistingConstructorHelper( "1INCH-V6-A", 0x111111125421cA6dc452d289314280a0f8842A65 ); whitelistingConstructorHelper( "PARASWAP-V6-A", 0x6A000F20005980200259B80c5102003040001068 ); whitelistingConstructorHelper( "ZEROX-V4-A", 0xDef1C0ded9bec7F1a1670819833240f027b25EfF ); whitelistingConstructorHelper( "KYBER-AGGREGATOR-A", 0x6131B5fae19EA4f9D964eAc0408E4408b66337b5 ); } function whitelistingConstructorHelper( string memory name, address routerAddress ) internal { whitelistedRoutes[name] = RouterHelper({ router: routerAddress, approval: routerAddress, status: true }); emit LogUpdateWhitelist(name, routerAddress, routerAddress, true); } /// @notice Update whitelisted name, routers, approval /// addresses and their status. function updateWhitelist( string[] memory name_, address[] memory routers_, address[] memory approvals_, bool[] memory status_ ) public onlyOwner { uint256 length_ = name_.length; if ( (length_ != routers_.length) || (length_ != approvals_.length) || (length_ != status_.length) ) { revert EthVaultWrapper__InvalidInput(); } for (uint256 i = 0; i < length_; i++) { whitelistedRoutes[name_[i]] = RouterHelper({ router: routers_[i], approval: approvals_[i], status: status_[i] }); emit LogUpdateWhitelist( name_[i], routers_[i], approvals_[i], status_[i] ); } } /// @notice Update status of routes. function updateWhitelistStatus( string[] memory name_, bool[] memory status_ ) public onlyOwner { uint256 length_ = name_.length; if (length_ != status_.length) { revert EthVaultWrapper__InvalidInput(); } for (uint256 i = 0; i < length_; i++) { RouterHelper storage helperStorage = whitelistedRoutes[name_[i]]; helperStorage.status = status_[i]; emit LogUpdateWhitelistStatus(name_[i], status_[i]); } } /// @notice deposits msg.value as stETH into ETH vault. returns shares amount /// @param route_ Route string through which swap will go, e.g. "1INCH-A" /// @param swapCalldata_ swap data for ETH -> stETH to call AggregationRouter with /// @param minStEthIn_ minimum expected stETH to be deposited /// @param receiver_ receiver of iToken shares from deposit /// @return actual amount of shares received function deposit( string calldata route_, bytes calldata swapCalldata_, uint256 minStEthIn_, address receiver_ ) external payable returns (uint256) { RouterHelper memory helper_ = whitelistedRoutes[route_]; if (!helper_.status) { revert EthVaultWrapper__OnlyWhitelisted(); } uint256 balanceBefore_ = STETH.balanceOf(address(this)); // swap msg.value to stETH via 1inch Address.functionCallWithValue( helper_.router, swapCalldata_, msg.value, "EthVaultWrapper: swap fail" ); uint256 depositAmount_ = STETH.balanceOf(address(this)) - balanceBefore_ - 1; // ensure expected minimum output if (depositAmount_ < minStEthIn_) { revert EthVaultWrapper__OutputInsufficient(); } // deposit output into vault for msg.sender as receiver return vault.deposit(depositAmount_, receiver_); } /// @notice withdraws amount_ of stETH from msg.sender as owner and swaps it to ETH then transfers to msg.sender /// @param route_ Route string through which swap will go, e.g. "1INCH-A" /// @param amount_ amount of stETH to withdraw /// @param swapCalldata_ swap data for stETH -> ETH to call AggregationRouter with /// @param minEthOut_ minimum expected output ETH /// @param receiver_ receiver of withdrawn ETH /// @return ethAmount_ actual output ETH function withdraw( string calldata route_, uint256 amount_, bytes calldata swapCalldata_, uint256 minEthOut_, address receiver_ ) external returns (uint256 ethAmount_) { RouterHelper memory helper_ = whitelistedRoutes[route_]; if (!helper_.status) { revert EthVaultWrapper__OnlyWhitelisted(); } uint256 stEthBalanceBefore = STETH.balanceOf(address(this)); uint256 withdrawFee = vault.getWithdrawFee(amount_); // withdraw amount from vault with msg.sender as owner & this contract as receiver // withdrawn amount = amount - fee vault.withdraw(amount_, address(this), msg.sender); uint256 vaultWithdrawnAmount = STETH.balanceOf(address(this)) - stEthBalanceBefore; // -1 to account for potential rounding errors if (vaultWithdrawnAmount + withdrawFee < amount_ - 1) { revert EthVaultWrapper__UnexpectedWithdrawAmount(); } // approve stETH STETH.approve(helper_.approval, vaultWithdrawnAmount); // swap stETH to ETH Address.functionCall( helper_.router, swapCalldata_, "EthVaultWrapper: swap fail" ); ethAmount_ = address(this).balance; // ensure expected minimum output if (ethAmount_ < minEthOut_) { revert EthVaultWrapper__OutputInsufficient(); } // transfer eth to receiver (usually msg.sender) payable(receiver_).transfer(ethAmount_); } /// @notice gets the amount of stETH that must be swapped to ETH via router for a withdraw /// @param amount_ amount of stETH to withdraw /// @return stEthSwapAmount_ to amount of stEth to be swapped to ETH function getWithdrawSwapAmount( uint256 amount_ ) external view returns (uint256 stEthSwapAmount_) { uint256 withdrawFee = vault.getWithdrawFee(amount_); stEthSwapAmount_ = amount_ - withdrawFee; } /** *@dev Returns ethereum address */ function getEthAddr() internal pure returns (address) { return 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; } function rescueFunds( address[] memory _tokens ) external returns (uint256[] memory) { uint256 _length = _tokens.length; uint256[] memory _rescueAmounts = new uint256[](_length); for (uint256 i = 0; i < _length; i++) { if (_tokens[i] == getEthAddr()) { _rescueAmounts[i] = address(this).balance; (bool sent, ) = RESCUE_TRANSFERS.call{value: _rescueAmounts[i]}(""); require(sent, "Failed to send Ether"); } else { _rescueAmounts[i] = IERC20Upgradeable(_tokens[i]).balanceOf( address(this) ); IERC20Upgradeable(_tokens[i]).safeTransfer( RESCUE_TRANSFERS, _rescueAmounts[i] ); } emit LogRescueFunds(_tokens[i], _rescueAmounts[i]); } return _rescueAmounts; } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20Upgradeable.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/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. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20PermitUpgradeable { /** * @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]. * * CAUTION: See Security Considerations above. */ 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.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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 (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../extensions/IERC20PermitUpgradeable.sol"; import "../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable { using AddressUpgradeable for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20Upgradeable 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(IERC20Upgradeable 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20PermitUpgradeable 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(IERC20Upgradeable 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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"vault_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EthVaultWrapper__InvalidInput","type":"error"},{"inputs":[],"name":"EthVaultWrapper__OnlyWhitelisted","type":"error"},{"inputs":[],"name":"EthVaultWrapper__OutputInsufficient","type":"error"},{"inputs":[],"name":"EthVaultWrapper__UnexpectedWithdrawAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogRescueFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"whitelistedRouter","type":"address"},{"indexed":false,"internalType":"address","name":"whitelistedApproval","type":"address"},{"indexed":true,"internalType":"bool","name":"status","type":"bool"}],"name":"LogUpdateWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"bool","name":"status","type":"bool"}],"name":"LogUpdateWhitelistStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"RESCUE_TRANSFERS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"route_","type":"string"},{"internalType":"bytes","name":"swapCalldata_","type":"bytes"},{"internalType":"uint256","name":"minStEthIn_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"getWithdrawSwapAmount","outputs":[{"internalType":"uint256","name":"stEthSwapAmount_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"}],"name":"rescueFunds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"name_","type":"string[]"},{"internalType":"address[]","name":"routers_","type":"address[]"},{"internalType":"address[]","name":"approvals_","type":"address[]"},{"internalType":"bool[]","name":"status_","type":"bool[]"}],"name":"updateWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"name_","type":"string[]"},{"internalType":"bool[]","name":"status_","type":"bool[]"}],"name":"updateWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"whitelistedRoutes","outputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"approval","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"route_","type":"string"},{"internalType":"uint256","name":"amount_","type":"uint256"},{"internalType":"bytes","name":"swapCalldata_","type":"bytes"},{"internalType":"uint256","name":"minEthOut_","type":"uint256"},{"internalType":"address","name":"receiver_","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"ethAmount_","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620020933803806200209383398101604081905262000034916200034f565b6200003f33620001f3565b6001600160a01b038216608081905260405163095ea7b360e01b81526004810191909152600019602482015273ae7ab96520de3a18e5e111b5eaab095312d7fe849063095ea7b3906044016020604051808303816000875af1158015620000aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d0919062000387565b50620000dc81620001f3565b60408051808201909152600a81526931494e43482d56362d4160b01b60208201526200011d9073111111125421ca6dc452d289314280a0f8842a6562000243565b60408051808201909152600d81526c50415241535741502d56362d4160981b60208201526200016190736a000f20005980200259b80c510200304000106862000243565b60408051808201909152600a8152695a45524f582d56342d4160b01b6020820152620001a29073def1c0ded9bec7f1a1670819833240f027b25eff62000243565b6040805180820190915260128152714b594245522d41474752454741544f522d4160701b6020820152620001eb90736131b5fae19ea4f9d964eac0408e4408b66337b562000243565b5050620003e3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516060810182526001600160a01b03831680825260208201526001818301819052915190919062000279908590620003b2565b908152604080519182900360209081018320845181546001600160a01b039182166001600160a01b0319909116178255918501516001918201805496909401511515600160a01b026001600160a81b0319909616921691909117939093179055620002e6908490620003b2565b604080519182900382206001600160a01b0385168084526020840152917f63724706a1b258582e19becdb96c40a96910244cea06b0ebaf9a64ae8268de31910160405180910390a35050565b80516001600160a01b03811681146200034a57600080fd5b919050565b600080604083850312156200036357600080fd5b6200036e8362000332565b91506200037e6020840162000332565b90509250929050565b6000602082840312156200039a57600080fd5b81518015158114620003ab57600080fd5b9392505050565b6000825160005b81811015620003d55760208186018101518583015201620003b9565b506000920191825250919050565b608051611c7f62000414600039600081816103ce0152818161045e0152818161094501526109e30152611c7f6000f3fe6080604052600436106100c05760003560e01c8063715018a611610074578063e131647a1161004e578063e131647a14610249578063f2fde38b14610276578063fdaf90d51461029657600080fd5b8063715018a6146101f457806385ddf5ca1461020b5780638da5cb5b1461022b57600080fd5b806337e229d2116100a557806337e229d21461013f578063385b5dde146101525780633b2611eb1461017257600080fd5b806306dc8bea146100cc5780631f28d1c5146100ff57600080fd5b366100c757005b600080fd5b3480156100d857600080fd5b506100ec6100e73660046115d2565b6102b6565b6040519081526020015b60405180910390f35b34801561010b57600080fd5b50610127734f6f977acdd1177dcd81ab83074855ecb9c2d49e81565b6040516001600160a01b0390911681526020016100f6565b6100ec61014d366004611665565b6106fc565b34801561015e57600080fd5b506100ec61016d3660046116ed565b6109c0565b34801561017e57600080fd5b506101cc61018d3660046117bd565b80516020818301810180516001808352938301929094019190912092905281549101546001600160a01b0391821691811690600160a01b900460ff1683565b604080516001600160a01b0394851681529390921660208401521515908201526060016100f6565b34801561020057600080fd5b50610209610a61565b005b34801561021757600080fd5b50610209610226366004611918565b610a75565b34801561023757600080fd5b506000546001600160a01b0316610127565b34801561025557600080fd5b506102696102643660046119de565b610ba7565b6040516100f69190611a13565b34801561028257600080fd5b50610209610291366004611a57565b610ec9565b3480156102a257600080fd5b506102096102b1366004611a72565b610f59565b600080600189896040516102cb929190611b1f565b908152604080516020928190038301812060608201835280546001600160a01b03908116835260019091015490811693820193909352600160a01b90920460ff1615159082018190529091506103345760405163568204b560e11b815260040160405180910390fd5b6040516370a0823160e01b815230600482015260009073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103aa9190611b2f565b6040516314e11f2560e11b8152600481018a90529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906329c23e4a90602401602060405180830381865afa158015610415573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104399190611b2f565b604051632d182be560e21b8152600481018b90523060248201523360448201529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b460af94906064016020604051808303816000875af11580156104af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d39190611b2f565b506040516370a0823160e01b8152306004820152600090839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611b2f565b6105569190611b5e565b905061056360018b611b5e565b61056d8383611b77565b101561058c576040516375d27de960e01b815260040160405180910390fd5b602084015160405163095ea7b360e01b81526001600160a01b0390911660048201526024810182905273ae7ab96520de3a18e5e111b5eaab095312d7fe849063095ea7b3906044016020604051808303816000875af11580156105f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106179190611b8a565b5061069184600001518a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152601a81527f4574685661756c74577261707065723a2073776170206661696c000000000000602082015291506111b69050565b50479450868510156106b65760405163b3b79b3960e01b815260040160405180910390fd5b6040516001600160a01b0387169086156108fc029087906000818181858888f193505050501580156106ec573d6000803e3d6000fd5b5050505050979650505050505050565b60008060018888604051610711929190611b1f565b908152604080516020928190038301812060608201835280546001600160a01b03908116835260019091015490811693820193909352600160a01b90920460ff16151590820181905290915061077a5760405163568204b560e11b815260040160405180910390fd5b6040516370a0823160e01b815230600482015260009073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f09190611b2f565b905061086c826000015188888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152601a81527f4574685661756c74577261707065723a2073776170206661696c000000000000602082015234925090506111cd565b506040516370a0823160e01b8152306004820152600090600190839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156108c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e89190611b2f565b6108f29190611b5e565b6108fc9190611b5e565b90508581101561091f5760405163b3b79b3960e01b815260040160405180910390fd5b604051636e553f6560e01b8152600481018290526001600160a01b0386811660248301527f00000000000000000000000000000000000000000000000000000000000000001690636e553f65906044016020604051808303816000875af115801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b29190611b2f565b9a9950505050505050505050565b6040516314e11f2560e11b81526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906329c23e4a90602401602060405180830381865afa158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e9190611b2f565b9050610a5a8184611b5e565b9392505050565b610a696112bf565b610a736000611319565b565b610a7d6112bf565b815181518114610aa057604051639b84babd60e01b815260040160405180910390fd5b60005b81811015610ba15760006001858381518110610ac157610ac1611ba7565b6020026020010151604051610ad69190611be1565b90815260200160405180910390209050838281518110610af857610af8611ba7565b60200260200101518160010160146101000a81548160ff021916908315150217905550838281518110610b2d57610b2d611ba7565b60200260200101511515858381518110610b4957610b49611ba7565b6020026020010151604051610b5e9190611be1565b604051908190038120907f18d5925c89ef82d44f46c1c0fc78e38b5e4340720f3c96769abc17e2d0d9e32a90600090a35080610b9981611bfd565b915050610aa3565b50505050565b805160609060008167ffffffffffffffff811115610bc757610bc7611706565b604051908082528060200260200182016040528015610bf0578160200160208202803683370190505b50905060005b82811015610ec15773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316858281518110610c2e57610c2e611ba7565b60200260200101516001600160a01b031603610d3e5747828281518110610c5757610c57611ba7565b6020026020010181815250506000734f6f977acdd1177dcd81ab83074855ecb9c2d49e6001600160a01b0316838381518110610c9557610c95611ba7565b602002602001015160405160006040518083038185875af1925050503d8060008114610cdd576040519150601f19603f3d011682016040523d82523d6000602084013e610ce2565b606091505b5050905080610d385760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064015b60405180910390fd5b50610e46565b848181518110610d5057610d50611ba7565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610da0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc49190611b2f565b828281518110610dd657610dd6611ba7565b602002602001018181525050610e46734f6f977acdd1177dcd81ab83074855ecb9c2d49e838381518110610e0c57610e0c611ba7565b6020026020010151878481518110610e2657610e26611ba7565b60200260200101516001600160a01b03166113769092919063ffffffff16565b818181518110610e5857610e58611ba7565b6020026020010151858281518110610e7257610e72611ba7565b60200260200101516001600160a01b03167f18ab019734e1618d4798c98154443464ecff84d595218cbe911c313c3db94f1c60405160405180910390a380610eb981611bfd565b915050610bf6565b509392505050565b610ed16112bf565b6001600160a01b038116610f4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d2f565b610f5681611319565b50565b610f616112bf565b8351835181141580610f74575082518114155b80610f80575081518114155b15610f9e57604051639b84babd60e01b815260040160405180910390fd5b60005b818110156111ae576040518060600160405280868381518110610fc657610fc6611ba7565b60200260200101516001600160a01b03168152602001858381518110610fee57610fee611ba7565b60200260200101516001600160a01b0316815260200184838151811061101657611016611ba7565b60200260200101511515815250600187838151811061103757611037611ba7565b602002602001015160405161104c9190611be1565b90815260408051602092819003830190208351815473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039182161782559284015160019091018054949092015192167fffffffffffffffffffffff00000000000000000000000000000000000000000090931692909217600160a01b9115159190910217905582518390829081106110e3576110e3611ba7565b602002602001015115158682815181106110ff576110ff611ba7565b60200260200101516040516111149190611be1565b60405180910390207f63724706a1b258582e19becdb96c40a96910244cea06b0ebaf9a64ae8268de3187848151811061114f5761114f611ba7565b602002602001015187858151811061116957611169611ba7565b60200260200101516040516111949291906001600160a01b0392831681529116602082015260400190565b60405180910390a3806111a681611bfd565b915050610fa1565b505050505050565b60606111c584846000856111cd565b949350505050565b6060824710156112455760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610d2f565b600080866001600160a01b031685876040516112619190611be1565b60006040518083038185875af1925050503d806000811461129e576040519150601f19603f3d011682016040523d82523d6000602084013e6112a3565b606091505b50915091506112b4878383876113e2565b979650505050505050565b6000546001600160a01b03163314610a735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d2f565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1790526113dd90849061145b565b505050565b6060831561145157825160000361144a576001600160a01b0385163b61144a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d2f565b50816111c5565b6111c58383611543565b60006114b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111b69092919063ffffffff16565b90508051600014806114d15750808060200190518101906114d19190611b8a565b6113dd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610d2f565b8151156115535781518083602001fd5b8060405162461bcd60e51b8152600401610d2f9190611c16565b60008083601f84011261157f57600080fd5b50813567ffffffffffffffff81111561159757600080fd5b6020830191508360208285010111156115af57600080fd5b9250929050565b80356001600160a01b03811681146115cd57600080fd5b919050565b600080600080600080600060a0888a0312156115ed57600080fd5b873567ffffffffffffffff8082111561160557600080fd5b6116118b838c0161156d565b909950975060208a0135965060408a013591508082111561163157600080fd5b5061163e8a828b0161156d565b90955093505060608801359150611657608089016115b6565b905092959891949750929550565b6000806000806000806080878903121561167e57600080fd5b863567ffffffffffffffff8082111561169657600080fd5b6116a28a838b0161156d565b909850965060208901359150808211156116bb57600080fd5b506116c889828a0161156d565b909550935050604087013591506116e1606088016115b6565b90509295509295509295565b6000602082840312156116ff57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174557611745611706565b604052919050565b600082601f83011261175e57600080fd5b813567ffffffffffffffff81111561177857611778611706565b61178b601f8201601f191660200161171c565b8181528460208386010111156117a057600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156117cf57600080fd5b813567ffffffffffffffff8111156117e657600080fd5b6111c58482850161174d565b600067ffffffffffffffff82111561180c5761180c611706565b5060051b60200190565b600082601f83011261182757600080fd5b8135602061183c611837836117f2565b61171c565b82815260059290921b8401810191818101908684111561185b57600080fd5b8286015b8481101561189b57803567ffffffffffffffff81111561187f5760008081fd5b61188d8986838b010161174d565b84525091830191830161185f565b509695505050505050565b8015158114610f5657600080fd5b600082601f8301126118c557600080fd5b813560206118d5611837836117f2565b82815260059290921b840181019181810190868411156118f457600080fd5b8286015b8481101561189b57803561190b816118a6565b83529183019183016118f8565b6000806040838503121561192b57600080fd5b823567ffffffffffffffff8082111561194357600080fd5b61194f86838701611816565b9350602085013591508082111561196557600080fd5b50611972858286016118b4565b9150509250929050565b600082601f83011261198d57600080fd5b8135602061199d611837836117f2565b82815260059290921b840181019181810190868411156119bc57600080fd5b8286015b8481101561189b576119d1816115b6565b83529183019183016119c0565b6000602082840312156119f057600080fd5b813567ffffffffffffffff811115611a0757600080fd5b6111c58482850161197c565b6020808252825182820181905260009190848201906040850190845b81811015611a4b57835183529284019291840191600101611a2f565b50909695505050505050565b600060208284031215611a6957600080fd5b610a5a826115b6565b60008060008060808587031215611a8857600080fd5b843567ffffffffffffffff80821115611aa057600080fd5b611aac88838901611816565b95506020870135915080821115611ac257600080fd5b611ace8883890161197c565b94506040870135915080821115611ae457600080fd5b611af08883890161197c565b93506060870135915080821115611b0657600080fd5b50611b13878288016118b4565b91505092959194509250565b8183823760009101908152919050565b600060208284031215611b4157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115611b7157611b71611b48565b92915050565b80820180821115611b7157611b71611b48565b600060208284031215611b9c57600080fd5b8151610a5a816118a6565b634e487b7160e01b600052603260045260246000fd5b60005b83811015611bd8578181015183820152602001611bc0565b50506000910152565b60008251611bf3818460208701611bbd565b9190910192915050565b600060018201611c0f57611c0f611b48565b5060010190565b6020815260008251806020840152611c35816040850160208701611bbd565b601f01601f1916919091016040019291505056fea26469706673582212202707c2164a01765c7bf06ee010db0ebff75f654afc814722d96b8abae6c4e80a64736f6c63430008110033000000000000000000000000a0d3707c569ff8c87fa923d3823ec5d81c98be780000000000000000000000004f6f977acdd1177dcd81ab83074855ecb9c2d49e
Deployed Bytecode
0x6080604052600436106100c05760003560e01c8063715018a611610074578063e131647a1161004e578063e131647a14610249578063f2fde38b14610276578063fdaf90d51461029657600080fd5b8063715018a6146101f457806385ddf5ca1461020b5780638da5cb5b1461022b57600080fd5b806337e229d2116100a557806337e229d21461013f578063385b5dde146101525780633b2611eb1461017257600080fd5b806306dc8bea146100cc5780631f28d1c5146100ff57600080fd5b366100c757005b600080fd5b3480156100d857600080fd5b506100ec6100e73660046115d2565b6102b6565b6040519081526020015b60405180910390f35b34801561010b57600080fd5b50610127734f6f977acdd1177dcd81ab83074855ecb9c2d49e81565b6040516001600160a01b0390911681526020016100f6565b6100ec61014d366004611665565b6106fc565b34801561015e57600080fd5b506100ec61016d3660046116ed565b6109c0565b34801561017e57600080fd5b506101cc61018d3660046117bd565b80516020818301810180516001808352938301929094019190912092905281549101546001600160a01b0391821691811690600160a01b900460ff1683565b604080516001600160a01b0394851681529390921660208401521515908201526060016100f6565b34801561020057600080fd5b50610209610a61565b005b34801561021757600080fd5b50610209610226366004611918565b610a75565b34801561023757600080fd5b506000546001600160a01b0316610127565b34801561025557600080fd5b506102696102643660046119de565b610ba7565b6040516100f69190611a13565b34801561028257600080fd5b50610209610291366004611a57565b610ec9565b3480156102a257600080fd5b506102096102b1366004611a72565b610f59565b600080600189896040516102cb929190611b1f565b908152604080516020928190038301812060608201835280546001600160a01b03908116835260019091015490811693820193909352600160a01b90920460ff1615159082018190529091506103345760405163568204b560e11b815260040160405180910390fd5b6040516370a0823160e01b815230600482015260009073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103aa9190611b2f565b6040516314e11f2560e11b8152600481018a90529091506000906001600160a01b037f000000000000000000000000a0d3707c569ff8c87fa923d3823ec5d81c98be7816906329c23e4a90602401602060405180830381865afa158015610415573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104399190611b2f565b604051632d182be560e21b8152600481018b90523060248201523360448201529091507f000000000000000000000000a0d3707c569ff8c87fa923d3823ec5d81c98be786001600160a01b03169063b460af94906064016020604051808303816000875af11580156104af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d39190611b2f565b506040516370a0823160e01b8152306004820152600090839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c9190611b2f565b6105569190611b5e565b905061056360018b611b5e565b61056d8383611b77565b101561058c576040516375d27de960e01b815260040160405180910390fd5b602084015160405163095ea7b360e01b81526001600160a01b0390911660048201526024810182905273ae7ab96520de3a18e5e111b5eaab095312d7fe849063095ea7b3906044016020604051808303816000875af11580156105f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106179190611b8a565b5061069184600001518a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152601a81527f4574685661756c74577261707065723a2073776170206661696c000000000000602082015291506111b69050565b50479450868510156106b65760405163b3b79b3960e01b815260040160405180910390fd5b6040516001600160a01b0387169086156108fc029087906000818181858888f193505050501580156106ec573d6000803e3d6000fd5b5050505050979650505050505050565b60008060018888604051610711929190611b1f565b908152604080516020928190038301812060608201835280546001600160a01b03908116835260019091015490811693820193909352600160a01b90920460ff16151590820181905290915061077a5760405163568204b560e11b815260040160405180910390fd5b6040516370a0823160e01b815230600482015260009073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156107cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f09190611b2f565b905061086c826000015188888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152601a81527f4574685661756c74577261707065723a2073776170206661696c000000000000602082015234925090506111cd565b506040516370a0823160e01b8152306004820152600090600190839073ae7ab96520de3a18e5e111b5eaab095312d7fe84906370a0823190602401602060405180830381865afa1580156108c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e89190611b2f565b6108f29190611b5e565b6108fc9190611b5e565b90508581101561091f5760405163b3b79b3960e01b815260040160405180910390fd5b604051636e553f6560e01b8152600481018290526001600160a01b0386811660248301527f000000000000000000000000a0d3707c569ff8c87fa923d3823ec5d81c98be781690636e553f65906044016020604051808303816000875af115801561098e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b29190611b2f565b9a9950505050505050505050565b6040516314e11f2560e11b81526004810182905260009081906001600160a01b037f000000000000000000000000a0d3707c569ff8c87fa923d3823ec5d81c98be7816906329c23e4a90602401602060405180830381865afa158015610a2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4e9190611b2f565b9050610a5a8184611b5e565b9392505050565b610a696112bf565b610a736000611319565b565b610a7d6112bf565b815181518114610aa057604051639b84babd60e01b815260040160405180910390fd5b60005b81811015610ba15760006001858381518110610ac157610ac1611ba7565b6020026020010151604051610ad69190611be1565b90815260200160405180910390209050838281518110610af857610af8611ba7565b60200260200101518160010160146101000a81548160ff021916908315150217905550838281518110610b2d57610b2d611ba7565b60200260200101511515858381518110610b4957610b49611ba7565b6020026020010151604051610b5e9190611be1565b604051908190038120907f18d5925c89ef82d44f46c1c0fc78e38b5e4340720f3c96769abc17e2d0d9e32a90600090a35080610b9981611bfd565b915050610aa3565b50505050565b805160609060008167ffffffffffffffff811115610bc757610bc7611706565b604051908082528060200260200182016040528015610bf0578160200160208202803683370190505b50905060005b82811015610ec15773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee6001600160a01b0316858281518110610c2e57610c2e611ba7565b60200260200101516001600160a01b031603610d3e5747828281518110610c5757610c57611ba7565b6020026020010181815250506000734f6f977acdd1177dcd81ab83074855ecb9c2d49e6001600160a01b0316838381518110610c9557610c95611ba7565b602002602001015160405160006040518083038185875af1925050503d8060008114610cdd576040519150601f19603f3d011682016040523d82523d6000602084013e610ce2565b606091505b5050905080610d385760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e6420457468657200000000000000000000000060448201526064015b60405180910390fd5b50610e46565b848181518110610d5057610d50611ba7565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610da0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc49190611b2f565b828281518110610dd657610dd6611ba7565b602002602001018181525050610e46734f6f977acdd1177dcd81ab83074855ecb9c2d49e838381518110610e0c57610e0c611ba7565b6020026020010151878481518110610e2657610e26611ba7565b60200260200101516001600160a01b03166113769092919063ffffffff16565b818181518110610e5857610e58611ba7565b6020026020010151858281518110610e7257610e72611ba7565b60200260200101516001600160a01b03167f18ab019734e1618d4798c98154443464ecff84d595218cbe911c313c3db94f1c60405160405180910390a380610eb981611bfd565b915050610bf6565b509392505050565b610ed16112bf565b6001600160a01b038116610f4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610d2f565b610f5681611319565b50565b610f616112bf565b8351835181141580610f74575082518114155b80610f80575081518114155b15610f9e57604051639b84babd60e01b815260040160405180910390fd5b60005b818110156111ae576040518060600160405280868381518110610fc657610fc6611ba7565b60200260200101516001600160a01b03168152602001858381518110610fee57610fee611ba7565b60200260200101516001600160a01b0316815260200184838151811061101657611016611ba7565b60200260200101511515815250600187838151811061103757611037611ba7565b602002602001015160405161104c9190611be1565b90815260408051602092819003830190208351815473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039182161782559284015160019091018054949092015192167fffffffffffffffffffffff00000000000000000000000000000000000000000090931692909217600160a01b9115159190910217905582518390829081106110e3576110e3611ba7565b602002602001015115158682815181106110ff576110ff611ba7565b60200260200101516040516111149190611be1565b60405180910390207f63724706a1b258582e19becdb96c40a96910244cea06b0ebaf9a64ae8268de3187848151811061114f5761114f611ba7565b602002602001015187858151811061116957611169611ba7565b60200260200101516040516111949291906001600160a01b0392831681529116602082015260400190565b60405180910390a3806111a681611bfd565b915050610fa1565b505050505050565b60606111c584846000856111cd565b949350505050565b6060824710156112455760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610d2f565b600080866001600160a01b031685876040516112619190611be1565b60006040518083038185875af1925050503d806000811461129e576040519150601f19603f3d011682016040523d82523d6000602084013e6112a3565b606091505b50915091506112b4878383876113e2565b979650505050505050565b6000546001600160a01b03163314610a735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d2f565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663a9059cbb60e01b1790526113dd90849061145b565b505050565b6060831561145157825160000361144a576001600160a01b0385163b61144a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610d2f565b50816111c5565b6111c58383611543565b60006114b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111b69092919063ffffffff16565b90508051600014806114d15750808060200190518101906114d19190611b8a565b6113dd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610d2f565b8151156115535781518083602001fd5b8060405162461bcd60e51b8152600401610d2f9190611c16565b60008083601f84011261157f57600080fd5b50813567ffffffffffffffff81111561159757600080fd5b6020830191508360208285010111156115af57600080fd5b9250929050565b80356001600160a01b03811681146115cd57600080fd5b919050565b600080600080600080600060a0888a0312156115ed57600080fd5b873567ffffffffffffffff8082111561160557600080fd5b6116118b838c0161156d565b909950975060208a0135965060408a013591508082111561163157600080fd5b5061163e8a828b0161156d565b90955093505060608801359150611657608089016115b6565b905092959891949750929550565b6000806000806000806080878903121561167e57600080fd5b863567ffffffffffffffff8082111561169657600080fd5b6116a28a838b0161156d565b909850965060208901359150808211156116bb57600080fd5b506116c889828a0161156d565b909550935050604087013591506116e1606088016115b6565b90509295509295509295565b6000602082840312156116ff57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561174557611745611706565b604052919050565b600082601f83011261175e57600080fd5b813567ffffffffffffffff81111561177857611778611706565b61178b601f8201601f191660200161171c565b8181528460208386010111156117a057600080fd5b816020850160208301376000918101602001919091529392505050565b6000602082840312156117cf57600080fd5b813567ffffffffffffffff8111156117e657600080fd5b6111c58482850161174d565b600067ffffffffffffffff82111561180c5761180c611706565b5060051b60200190565b600082601f83011261182757600080fd5b8135602061183c611837836117f2565b61171c565b82815260059290921b8401810191818101908684111561185b57600080fd5b8286015b8481101561189b57803567ffffffffffffffff81111561187f5760008081fd5b61188d8986838b010161174d565b84525091830191830161185f565b509695505050505050565b8015158114610f5657600080fd5b600082601f8301126118c557600080fd5b813560206118d5611837836117f2565b82815260059290921b840181019181810190868411156118f457600080fd5b8286015b8481101561189b57803561190b816118a6565b83529183019183016118f8565b6000806040838503121561192b57600080fd5b823567ffffffffffffffff8082111561194357600080fd5b61194f86838701611816565b9350602085013591508082111561196557600080fd5b50611972858286016118b4565b9150509250929050565b600082601f83011261198d57600080fd5b8135602061199d611837836117f2565b82815260059290921b840181019181810190868411156119bc57600080fd5b8286015b8481101561189b576119d1816115b6565b83529183019183016119c0565b6000602082840312156119f057600080fd5b813567ffffffffffffffff811115611a0757600080fd5b6111c58482850161197c565b6020808252825182820181905260009190848201906040850190845b81811015611a4b57835183529284019291840191600101611a2f565b50909695505050505050565b600060208284031215611a6957600080fd5b610a5a826115b6565b60008060008060808587031215611a8857600080fd5b843567ffffffffffffffff80821115611aa057600080fd5b611aac88838901611816565b95506020870135915080821115611ac257600080fd5b611ace8883890161197c565b94506040870135915080821115611ae457600080fd5b611af08883890161197c565b93506060870135915080821115611b0657600080fd5b50611b13878288016118b4565b91505092959194509250565b8183823760009101908152919050565b600060208284031215611b4157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b81810381811115611b7157611b71611b48565b92915050565b80820180821115611b7157611b71611b48565b600060208284031215611b9c57600080fd5b8151610a5a816118a6565b634e487b7160e01b600052603260045260246000fd5b60005b83811015611bd8578181015183820152602001611bc0565b50506000910152565b60008251611bf3818460208701611bbd565b9190910192915050565b600060018201611c0f57611c0f611b48565b5060010190565b6020815260008251806020840152611c35816040850160208701611bbd565b601f01601f1916919091016040019291505056fea26469706673582212202707c2164a01765c7bf06ee010db0ebff75f654afc814722d96b8abae6c4e80a64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a0d3707c569ff8c87fa923d3823ec5d81c98be780000000000000000000000004f6f977acdd1177dcd81ab83074855ecb9c2d49e
-----Decoded View---------------
Arg [0] : vault_ (address): 0xA0D3707c569ff8C87FA923d3823eC5D81c98Be78
Arg [1] : owner_ (address): 0x4F6F977aCDD1177DCD81aB83074855EcB9C2D49e
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a0d3707c569ff8c87fa923d3823ec5d81c98be78
Arg [1] : 0000000000000000000000004f6f977acdd1177dcd81ab83074855ecb9c2d49e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.